Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!ulysses!allegra!mit-eddie!husc6!cmcl2!nrl-cmf!ames!oliveb!sun!gorodish!guy From: guy@gorodish.UUCP Newsgroups: comp.unix.questions Subject: Re: exit(-1), 0 is sometimes magic Keywords: exit, zero, shells Message-ID: <39822@sun.uucp> Date: 24 Jan 88 05:12:43 GMT References: <502@cresswell.quintus.UUCP> <6935@brl-smoke.ARPA> <1179@wjvax.UUCP> <310@fig.bbn.com> Sender: news@sun.uucp Lines: 11 Posted: Sun Jan 24 00:12:43 1988 > Nope. The use of && and || in csh is the opposite of that in /bin/sh. Nope. The use of && and ||, in versions of "csh" recent enough to have the bug that broke && and || fixed, is the same as that in "/bin/sh". This includes the 4.2 and 4.3 versions, and if I remember correctly it includes the 4.1 version as well. (The bug was caused by somebody working on the C shell forgetting that a zero exit status means true, not false, and that a non-zero exit status means false, not true.) Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com