Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: localtraps
- X-seq: zsh-workers 21226
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: localtraps
- Date: Wed, 04 May 2005 01:42:18 +0000
- In-reply-to: <200505031004.j43A47jB014589@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20050425063521.GA17598@xxxxxxxxxxxxxxxxx> <1050425163202.ZM25027@xxxxxxxxxxxxxxxxxxxxxxx> <20050426030308.GA21501@xxxxxxxxxxxxxxxxx> <200504261834.j3QIYHSa018951@xxxxxxxxxxxxxx> <1050427053638.ZM28743@xxxxxxxxxxxxxxxxxxxxxxx> <200504270954.j3R9sujP029445@xxxxxxxxxxxxxx> <1050427140931.ZM29524@xxxxxxxxxxxxxxxxxxxxxxx> <20050501185447.GA24296@xxxxxxxxxxxxxxxxx> <200505031004.j43A47jB014589@xxxxxxxxxxxxxx>
On May 3, 11:04am, Peter Stephenson wrote:
} Subject: Re: localtraps
}
} > arget ;; esac; test -f $target
} > *** Error code 1
}
} It's not obvious why it gave an error --- unless the wrap between "$t"
} and "arget" was there in the original, which is unlikely.
It gave an error because "test -f $target" failed, because the target
does not exist. This is a result of a change I recently committed.
Tell me again why we should create and test for an empty file in the
event tht yodl doesn't exist?
Seems to me the test is wrong even in the case where yodl *does* exist,
since the file is created by a redirection and therefore it will be
present (and empty) even if yodl fails outright.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author