buggrep - Bugs: bug #9668, Interpreting '-' specially not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9668: Interpreting '-' specially not allowed by POSIX?

Submitter:  Tim Waugh <twaugh>
Submitted:  Fri 16 Jul 2004 02:14:17 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Tue 18 Mar 2008 05:16:30 PM UTC, comment #2: 

the GNU project already in general treats '-' as stdin as well as handles /dev/... pieces sanely.  that specific part of POSIX is simply ignored.  see discussion on the GNU tar mailing list for more info.

Mike Frysinger <vapier>
Tue 18 Mar 2008 04:03:55 PM UTC, comment #1: 

By a strict interpretation of that sentence, 'grep foo /dev/stdin' would also be forbidden.

Ed Avis <epaepa>
Fri 16 Jul 2004 02:14:17 PM UTC, original submission:  

I was surprised to read this in the Open Group Base Specifications Issue 6, concerning grep(1):

STDIN

    The standard input shall be used only if no file
    operands are specified. [...]

This seems to indicate that '-' is not allowed to be treated specially.

Tim Waugh <twaugh>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by taa (Updated the item)
  • -email is unavailable- added by vapier (Posted a comment)
  • -email is unavailable- added by epaepa (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-03-22 taa StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code