bug-bash
[Top][All Lists]
Advanced

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

Re: [Documentation] -d returns true for symlink to directory


From: Chet Ramey
Subject: Re: [Documentation] -d returns true for symlink to directory
Date: Thu, 21 Jul 2016 12:18:56 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 7/21/16 11:56 AM, Reuti wrote:

>> Yes.  All of the file-testing operators follow a symlink, EXCEPT for the
>> ones that specifically test whether the operand is a symlink (-h and -L).
> 
> While we are on this: wondering about the difference about -h and -L I found 
> that `man test` outputs on OS X:

Since those document the standalone `test' binary, I would go by what
the bash man page says for the bash builtin.  If you're wondering, Posix
says that they behave identically.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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