Bug #2385
cut: "-" doesn't work for standard input
| Status: | Closed | Start date: | 06/07/2012 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | - |
Description
The man page for cut states that you can supply a - in place of the filename to read from standard input, but it doesn't work:
> echo foo bar | cut -w -f 1 -
cut: -: No such file or directory
However, this does:
> echo foo bar | cut -w -f 1
foo
Related todos
History
Updated by marino 9 months ago
The "-w" in the example is wrong, but I confirmed the error on DragonFly which doesn't appear on FreeBSD 9.
Updated by marino 9 months ago
- Status changed from New to Resolved
I synced the cut code from FreeBSD, including the man page. The stdin works now in master.
http://gitweb.dragonflybsd.org/dragonfly.git/commit/fecfcc569a652a96437e9330d182f61f4e406a41