Hi Jakub,

On 2014-06-20 14:40, Jakub Wilk wrote:
[I'm not the maintainer of bash.]

* Filipus Klutiero <chea...@gmail.com>, 2014-01-12, 00:23:
According to the part on test of bash's manpage:
1 argument
The expression is true if and only if the argument is not null.

Yet:
$ test 0; echo $?
0

0 is not null, so the expression is true, so the exit code is 0.

The string "0" isn't, but 0 *is* null.

What else did you expect?


I was expecting bash to consider the argument null, the expression false, and 
test to return 1.

--
Filipus Klutiero
http://www.philippecloutier.com

Reply via email to