cmds/core/cat: handle "-" to comply with POSIX#2567
Conversation
Signed-off-by: Siarhiej Siemianczuk <pdp.eleven11@gmail.com>
Codecov ReportBase: 74.85% // Head: 74.85% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2567 +/- ##
=======================================
Coverage 74.85% 74.85%
=======================================
Files 408 408
Lines 41344 41349 +5
=======================================
+ Hits 30946 30950 +4
- Misses 10398 10399 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
btw -- is there a "posix command test suite" out there somewhere? Would be nice to be able to test these things with a robot. |
rminnich
left a comment
There was a problem hiding this comment.
The whole - thing always seems like a failure of vision to me, and it's a cancer, we're going to end up with commands that support it and commands that don't. But given that none of us has come up with something less nasty, well, we can do this for now. Eeek.
I'd tend to requiring people to learn to type /dev/fd/0, but ... that's not a standard, anywhere, so it goes.
Signed-off-by: Siarhiej Siemianczuk pdp.eleven11@gmail.com