bug-bash
[Top][All Lists]
Advanced

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

Re: `builtin test -a foo` VS `builtin test ! -a foo`


From: Chet Ramey
Subject: Re: `builtin test -a foo` VS `builtin test ! -a foo`
Date: Fri, 19 Jan 2007 12:51:39 -0500
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)

Name withheld by request wrote:

> So 
>   builtin test ! -a foo
> is equivalent to
>   true
> ie it's not very useful, what is it I'm missing, why is this not a bug?

Read the Bash FAQ, question E1.  The operation of test is based on the
number of arguments supplied.

The precedence levels are explained in slightly greater detail in the
bash reference manual and man page.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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