retitle 421591 bash: test builtin (or [) does not behave correctly
thanks

As a summary, the following test at least does not behave correctly:

[EMAIL PROTECTED]:~$ test \( ! -e \) ; echo $?
bash: test: `)' expected
2

And I think this one is also buggy:

[EMAIL PROTECTED]:~$ test true -a \( ! -a \) ; echo $?
bash: test: `)' expected
2

FYI, the coreutils and zsh test utility both output 1 on these tests;
so does dash on the second one only.

I recall the POSIX spec:

  http://www.opengroup.org/onlinepubs/009695399/utilities/test.html

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to