[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test -t

From: jidanni
Subject: Re: test -t
Date: Thu, 04 Sep 2008 03:32:28 +0800

Is this a bug?

>> $ t=test #bash builtin
>> $ $t -t ' '; echo $?
>> 0

PJ> That looks like a bug.  bash tries to parse a number from the " "
PJ> string and ends up with zero, which is a tty.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]