Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: why does this exit = 1 ?
This has been sitting in my mailbox for a few days ...
On Apr 5, 4:27pm, C. v. Stuckrad wrote:
} Subject: Re: why does this exit = 1 ?
}
} strange thou, it works for me, tested it in a zsh-function!
}
} So what does happen really ?
}
} > On Sun, 5 Apr 1998, Timothy J Luoma wrote:
} > > I have this little snippet:
} > > ...
} > > if [ -r /LocalLibrary/Images/Icons/tempPark.tiff -a ! -r /tmp/.dir.tiff ] then
} > > ln -s /LocalLibrary/Images/Icons/tempPark.tiff /tmp/.dir.tiff
} > > fi
} > >
} > > When I run it and there is already a /tmp/.dir.tiff it exits = 1
Two guesses:
1. It's the alias-for-fi problem again, but something else is masking the
syntax error.
2. /tmp/.dir.tiff exists but is not readable, so [ ! -r /tmp/.dir.tiff ]
succeeds but ln fails. Try [ ! -f /tmp/.dir.tiff ].
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author