Debian 4.86.1 beta

Mark Sapiro mark at msapiro.net
Thu Jan 28 22:17:23 UTC 2016


On 01/28/2016 02:11 PM, Jerry Benton wrote:
> Does -d fire for symlinks? I forget things ...

Yes, it does if the target of the symlink is a directory. If you want to
test for a directory that's not a symlink you need something like

if [ -d xxx -a ! -L xxx ]


-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the MailScanner mailing list