Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: why does this exit = 1 ?
- X-seq: zsh-users 1438
- From: Michael Barnes <mibarnes@xxxxxxxxxxxxxxx>
- To: Timothy J Luoma <luomat+Lists/Zsh/users@xxxxxxxxxxxxxxx>
- Subject: Re: why does this exit = 1 ?
- Date: Sun, 5 Apr 1998 04:22:20 -0400 (EDT)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <199804050800.EAA20624@xxxxxxxxxxxxxxx>
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