From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8853 invoked from network); 5 Apr 1998 08:33:38 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 5 Apr 1998 08:33:38 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id EAA10865; Sun, 5 Apr 1998 04:26:35 -0400 (EDT) Resent-Date: Sun, 5 Apr 1998 04:22:45 -0400 (EDT) Date: Sun, 5 Apr 1998 04:22:20 -0400 (EDT) From: Michael Barnes To: Timothy J Luoma cc: zsh-users@math.gatech.edu Subject: Re: why does this exit = 1 ? In-Reply-To: <199804050800.EAA20624@luomat.peak.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <"eO1VF3.0.Te2.Kzp9r"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1438 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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 > > >