シェルスクリプト総合 その19
■ このスレッドは過去ログ倉庫に格納されています
0290名無しさん@お腹いっぱい。
2012/02/02(木) 01:40:36.62http://www.freebsd.org/cgi/man.cgi?query=test&apropos=0&sektion=0&manpath=FreeBSD+9.0-RELEASE&arch=default&format=html
-n string True if the length of string is nonzero.
string True if string is not the null string.
違い
test -n $nonexistent; $? <= バグ? test -z $nonexistent; $?と矛盾する
test $nonexistent; $?
■ このスレッドは過去ログ倉庫に格納されています