Dear gnu-coreutils team We had a funny problem caused by `test` which does return "0" when an option is given without any EXPRESSION The man page says (near line 15 or so) : An omitted EXPRESSION defaults to false. This is not the case when an option is given (tested for -s and -d options) wasoi@CMV03:/home/wasoi> echo $SHELL /bin/ksh wasoi@CMV03:/home/wasoi> uname Linux wasoi@CMV03:/home/wasoi> test -s wasoi@CMV03:/home/wasoi> echo $? 0 I expected an error (at least return code not zero) , or it would be nice to be warned in the man page. ---------- system and package information : wasoi@CMV03:/home/wasoi> cat /etc/redhat\-release CentOS release 6.4 (Final) List of rpm coreutils-libs-8.4-19.el6.x86_64 coreutils-8.4-19.el6.x86_64 policycoreutils-2.0.83-19.30.el6.x86_64 ------------- reference : On *AIX* 6.1 , with IBM's test , there is an error wasoi@cms054:/i/w/l/w00/was> echo $SHELL /bin/ksh wasoi@cms054:/i/w/l/w00/was> uname AIX wasoi@cms054:/i/w/l/w00/was> test -s ksh: test: argument expected wasoi@cms054:/i/w/l/w00/was> echo $? 1 This was the expected behavior :-) The *AIX* man page gives Exit Status This command returns the following exit values: Item Description 0 The Expression parameter is true. 1 The Expression parameter is false or missing. >1 An error occurred. ------------- Best regards , and thanks a lot for your work. Alain BAECKEROOT (cnav.fr)