[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20638: BUG: standard & extended RE's don't find NUL's :-(
From: |
Eric Blake |
Subject: |
bug#20638: BUG: standard & extended RE's don't find NUL's :-( |
Date: |
Sun, 24 May 2015 06:58:51 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 05/23/2015 06:04 PM, L. A. Walsh wrote:
> the standard & extended RE's don't find find NUL's:
Because NULs imply binary data, and grepping binary data has unspecified
results per POSIX. What's more, the NEWS for 2.21 documents that grep
is now taking the liberty of treating NUL as a line terminator when -a
is not in effect, thanks to the behavior being otherwise unspecified by
POSIX.
Try using 'grep -a' to force grep to treat the file as non-binary, in
spite of the NULs.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- bug#20638: BUG: standard & extended RE's don't find NUL's :-(, L. A. Walsh, 2015/05/24
- bug#20638: BUG: standard & extended RE's don't find NUL's :-(,
Eric Blake <=
- bug#20638: BUG: standard & extended RE's don't find NUL's :-(, Linda Walsh, 2015/05/25
- bug#20638: BUG: standard & extended RE's don't find NUL's :-(, Paul Eggert, 2015/05/25
- bug#20638: BUG: standard & extended RE's don't find NUL's :-(, Linda Walsh, 2015/05/25
- bug#20638: BUG: standard & extended RE's don't find NUL's :-(, Paul Eggert, 2015/05/25
- bug#20638: BUG: standard & extended RE's don't find NUL's :-(, Linda Walsh, 2015/05/25
- bug#20638: BUG: standard & extended RE's don't find NUL's :-(, Paul Eggert, 2015/05/25
- bug#20638: BUG: standard & extended RE's don't find NUL's :-(, Linda Walsh, 2015/05/25
- bug#20638: BUG: standard & extended RE's don't find NUL's :-(, Paul Eggert, 2015/05/25
- bug#20638: BUG: standard & extended RE's don't find NUL's :-(, Linda Walsh, 2015/05/25
- bug#20638: BUG: standard & extended RE's don't find NUL's :-(, Linda Walsh, 2015/05/25