Re: [PATCH] bltin/test: = and != are strcmp, not strcoll

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



наб <nabijaczleweli@xxxxxxxxxxxxxxxxxx> wrote:
> [-- text/plain, encoding quoted-printable, charset: us-ascii, 38 lines --]
> 
> 117067  s1 = s2  True if the strings s1 and s2 are identical; otherwise, false.
> 117068  s1 != s2 True if the strings s1 and s2 are not identical; otherwise, false.
> 117069  s1 > s2  True if s1 collates after s2 in the current locale; otherwise, false.
> 117070  s1 < s2  True if s1 collates before s2 in the current locale; otherwise, false.
> 
> "identical" does not mean "collate equally";
> this is the difference between sort | uniq and sort -u
> ---
> This bug violates every POSIX issue i can find.
> 
> The manual is already correct.
> 
> src/bltin/test.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux