Project

General

Profile

Actions

Bug #2385

closed

cut: "-" doesn't work for standard input

Added by Anonymous almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Target version:
-
Start date:
06/07/2012
Due date:
% Done:

0%

Estimated time:

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

Actions #1

Updated by marino over 11 years ago

The "-w" in the example is wrong, but I confirmed the error on DragonFly which doesn't appear on FreeBSD 9.

Actions #2

Updated by marino over 11 years 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

Actions #3

Updated by Anonymous over 11 years ago

Thanks, John. What's wrong with "-w"?

Actions #4

Updated by swildner over 11 years ago

  • Status changed from Resolved to In Progress
  • Assignee set to swildner

I've added back -w. Please test. I'll close the report when you confirm.

Actions #5

Updated by Anonymous over 11 years ago

It looks good, thanks.

Actions #6

Updated by swildner over 11 years ago

  • Status changed from In Progress to Closed
Actions

Also available in: Atom PDF