grep - Bugs: bug #12660, byte-offset has an off-by-one error
You are not allowed to post comments on this tracker with your current authentication level.
bug #12660: byte-offset has an off-by-one error
Submitter: | None | ||
Submitted: | Tue 12 Apr 2005 02:22:15 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | Invalid |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Tue 12 Apr 2005 06:19:09 PM UTC, comment #2: |
Anonymous |
Tue 12 Apr 2005 03:01:20 PM UTC, comment #1: User error: there are indeed 17 bytes per line if you remember to count the LF characters. |
Julian Foad <julianfoad> |
Tue 12 Apr 2005 02:22:15 PM UTC, original submission:
the byte offset reported when using the -b option is incorrect. It is off by one per line. (except of course the first line, which correctly reports 0 offset). So the byte offset reported on the Nth line is incorrect by (N-1).
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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 |
---|---|---|---|---|---|
2005-04-12 | julianfoad | Status | None | Invalid | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-758e.
Corresponding source code
IGNORE -- the xxd output has a cr character appended prior to piping to grep ... it is of course invisible when the output is examined.