buggrep - Bugs: bug #28932, Grep doesn't handle Mac line ending

 
 

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

bug #28932: Grep doesn't handle Mac line ending

Submitter:  None
Submitted:  Fri 19 Feb 2010 01:21:28 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Fri 19 Feb 2010 01:53:33 PM UTC, comment #1: 

Please use tr \\r \\n to convert the line endings, possibly converting them back when you are done with any Unix utility.  Note that grep will "act strange" also with Windows line endings, for example

$ echo $'abc\r\ndef\r' | grep c$
$ echo $'abc\r\ndef\r' | grep c.$
abc

Paolo Bonzini <bonzini>
Fri 19 Feb 2010 01:21:28 PM UTC, original submission:  

If Mac line endings (\R) are used, grep acts really strange.

Anonymous

 

(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 bonzini (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
    2010-02-19 bonzini StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code