grep - 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: |
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 |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
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 | Status | None | Wont Fix | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-02a9.
Corresponding source code
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