[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like form
From: |
Jim Meyering |
Subject: |
Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms |
Date: |
Wed, 07 Jan 2004 19:40:32 +0100 |
Since I am unable to reproduce those failures,
I suspect that some of the implied `-4mdk' changes
introduced the problem.
Would you please build from *unmodified* sources?
> # unpatched coreutils-5.0.91:
> #
>
> $ rpm -q coreutils
> coreutils-5.0.91-4mdk
> $ [ --version|head -n1
It's strange that the above generates no output,
but the one below does.
Please use /usr/bin/[ or ./[ in such tests.
Then we won't have to wonder about your $PATH.
> $ [ x = x ] && echo ok
> [: too many arguments
> $ [ x = x
> $ test 1 -eq 2
> $ test 1 -eq 2 ]
> test: too many arguments
> $ perl -e 'system("[", "1", "=", "1", "]")'
> [: too many arguments
> $ perl -e 'system("/usr/bin/[", "1", "=", "1", "]")'
> /usr/bin/[: too many arguments
> $ perl -e 'system("/usr/bin/[", "1", "=", "1")'
>
> # patched coreutils-5.0.91:
> #
>
> $ rpm -q coreutils
> coreutils-5.0.91-5mdk
> $ [ --version|head -n1
> test (GNU coreutils) 5.0.91
> $ [ x = x ] && echo ok
> ok
> $ [ x = x
> [: missing `]'
> $ test 1 -eq 2
> $ test 1 -eq 2 ]
> test: too many arguments
> $ perl -e 'system("[", "1", "=", "1", "]")'
> $ perl -e 'system("/usr/bin/[", "1", "=", "1", "]")'
> $ perl -e 'system("/usr/bin/[", "1", "=", "1")'
> /usr/bin/[: missing `]'
- [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Thierry Vignaud, 2004/01/07
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Thierry Vignaud, 2004/01/07
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Jim Meyering, 2004/01/07
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Olivier Delhomme, 2004/01/07
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Paul Jarc, 2004/01/07
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Bob Proulx, 2004/01/08
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Paul Jarc, 2004/01/07
- Re: [PATCH] fix coreutils-5.0.91 rejecting "[ toto -eq tata ]" like forms, Paul Eggert, 2004/01/08