Re: [PATCH] bltin/test: = and != are strcmp, not strcoll
Herbert Xu <[email protected]>
| Newsgroups | org.kernel.vger.dash |
|---|---|
| Message-ID | <[email protected]> |
наб <[email protected]> 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 <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt