On Sat, 2005-02-05 at 00:19 -0800, Donnie Berkholz wrote: > | I'd prefer: > | [ -L /usr/bin/X11 -a ! -e /usr/bin/X11 ] && rm /usr/bin/X11 > > Uhh .. if it doesn't exist, remove it? That doesn't make any sense, > unless that's your sick, twisted sense of humor.
try this: # ln -s <something that doesn't exist> b # [ -L b -a ! -e b ] # echo $? Hence why I think that is more appropriate. We shouldn't remove the symlink if it has a target. =p
signature.asc
Description: This is a digitally signed message part
