Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: why does this exit = 1 ?



The if statement returns false so the script returns false (1),
if you want the script to return true just add exit 0 at the end.

Mike

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
> 
> I am curious why it does that, since there shouldn't be any 'error' --- or  
> am I missing something?
> 
> TjL
> 
> 
> 



Messages sorted by: Reverse Date, Date, Thread, Author