If was time, where string comparisons with void were ... with features.

|-*-
if [ "x$a" = 'x|' ]; then
|-*-

Yet arithmetic ones are still with them:

|-*-           
[EMAIL PROTECTED]:/tmp$ bash -c "test '' -eq 0 ; echo \$?"
bash: line 0: test: : integer expression expected
2
[EMAIL PROTECTED]:/tmp$ dash -c "test '' -eq 0 ; echo \$?"
0
[EMAIL PROTECTED]:/tmp$ busybox sh -c "test '' -eq 0 ; echo \$?"
0
[EMAIL PROTECTED]:/tmp$
|-*-

Ah, bash is clever?

|-*-
[EMAIL PROTECTED]:/tmp$ bash -c -v "test \"printf '\t'\" -eq 0 ; echo \$?"
test "  " -eq 0 ; echo $?
0
[EMAIL PROTECTED]:/tmp$ bash -c -v "test \"printf ' '\" -eq 0 ; echo \$?"
test " " -eq 0 ; echo $?
0
[EMAIL PROTECTED]:/tmp$ bash -c -v "test \"printf 'a'\" -eq 0 ; echo \$?"
test "a" -eq 0 ; echo $?
bash: line 0: test: a: integer expression expected
2
[EMAIL PROTECTED]:/tmp$
|-*-

Nope?

Are there bugs or features?
____


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

Reply via email to