bug-bash
[Top][All Lists]
Advanced

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

Re: test -t


From: Chet Ramey
Subject: Re: test -t
Date: Wed, 03 Sep 2008 16:25:05 -0400
User-agent: Thunderbird 2.0.0.16 (Macintosh/20080707)

jidanni@jidanni.org wrote:
> Is this a bug?
> 
>>> $ t=test #bash builtin
>>> $ $t -t ' '; echo $?
>>> 0

Doesn't look like it:

$ ../bash-3.2-patched/bash --version
GNU bash, version 3.2.39(3)-release (i386-apple-darwin9.2.0)
Copyright (C) 2007 Free Software Foundation, Inc.
$ cat x19
test -t 0
echo $?
test -t ' '
echo $?
$ ../bash-3.2-patched/bash ./x19
0
1

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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