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: Greg Wooledge
Subject: Re: [Documentation] -d returns true for symlink to directory
Date: Thu, 21 Jul 2016 09:39:13 -0400
User-agent: Mutt/1.4.2.3i

On Wed, Jul 20, 2016 at 04:43:13PM -0700, Adam McKenna wrote:
>        -d file
>               True if file exists and is a directory.
> 
> The operator also returns True if the file exists and is a symlink to a
> directory

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).



reply via email to

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