Re: [PATCH] maint: use consistent widths for comparison of file system c (original) (raw)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
From: | Pádraig Brady |
---|---|
Subject: | Re: [PATCH] maint: use consistent widths for comparison of file system constants |
Date: | Thu, 22 May 2014 11:26:05 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 05/22/2014 03:28 AM, Jim Meyering wrote: q> Nice. Thanks!
What do you think about using e.g.,
grep -vE '^0x(....|........)$'
instead of that latter sed invocation? Then any offending hex string would be printed.
Well the previous did actually print the offending hex strings (since they
start with 0x),
however your technique of just using an anchored grep expression is better.
Though now, regex golf! I'm now using the following to also flag lower case hex,
which also give false positives with make src/fs-magic-compare
:
grep -Ev '^0x([0-9A-F]{4}){1,2}$
I'll push the attached later.
thanks! Pádraig.
magic-compare.patch
Description: Text Data
- [PATCH] maint: use consistent widths for comparison of file system constants, Pádraig Brady, 2014/05/21
- Re: [PATCH] maint: use consistent widths for comparison of file system constants, Jim Meyering, 2014/05/21
* Re: [PATCH] maint: use consistent widths for comparison of file system constants,Pádraig Brady <=
* Re: [PATCH] maint: use consistent widths for comparison of file system constants, Jim Meyering, 2014/05/22
- Re: [PATCH] maint: use consistent widths for comparison of file system constants, Jim Meyering, 2014/05/21
- Prev by Date:Re: RFE: Modification to the Timezone Modifier
- Next by Date:stat: added features: `--files0-from=FILE', `--digest-type=WORD' and `--quoting-style=WORD'
- Previous by thread:Re: [PATCH] maint: use consistent widths for comparison of file system constants
- Next by thread:Re: [PATCH] maint: use consistent widths for comparison of file system constants
- Index(es):