[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 18:03:37 +0100 |
Thierry Vignaud <address@hidden> wrote:
> latest coreutils wrongly assume the same behavior for both test and [
> programs.
Thanks for the patch, but so far I don't see a problem.
FYI, the latest is 5.1.0, but that has a couple of known problems.
5.1.1 should be out soon.
> however, whereas it's ok for test to be called as in "test toto -eq
> tata ]" , "[" call must be finished by a "]" as in "[ toto -eq tata ]"
Given the above description, I have been unable to guess what
a failing test case might be.
> see http://qa.mandrakesoft.com/show_bug.cgi?id=6736 for reference
I can't reproduce the failure mentioned in the above URL.
Please provide a precise test case: what you typed, what was output,
and what you expected. And be sure to use an unmodified version of
the coreutils package. E.g., compile from source, then do something
like this:
$ ./[ --version|head -n1
[ (GNU coreutils) 5.0.91
$ ./[ x = x ] && echo ok
ok
$ ./[ x = x
./[: missing `]'
[Exit 2]
$ ./test x = x ]
./test: too many arguments
[Exit 2]
$ ./test 1 -eq 2
[Exit 1]
$ ./test 1 -eq 2 ]
./test: too many arguments
[Exit 2]