dotnet / dotnet/command-line-api
Feature request: Support POSIX standard of using single hyphen "-" to mean standard input.
Open
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
Posix support of using single hyphen "-" to mean standard input.
ref: https://pubs.opengroup.org/onlinepubs/9699919799/
**example**
```
cd ~ && wget -O - "https://path/to/file" | tar xzf -
```
The```-``` argument passed to tar after xzf means to read from standard input instead of from a named file.
The ```-``` argument passed to wget after -O means to write to standard output instead of to a named file.
Here OS will prompt the user to enter fileName from keyboard
It is nice if this feature is supported and system prompt the user to enter filename.
Contributor guide
Assessment
This issue has not been assessed yet.