Path: utzoo!utgpu!watserv1!watmath!att!rutgers!mephisto!udel!haven!decuac!shlump.nac.dec.com!rust.zso.dec.com!bacchus.pa.dec.com!decwrl!brister From: brister@decwrl.dec.com (James Brister) Newsgroups: comp.unix.shell Subject: Re: sh weirdness Message-ID: Date: 1 Sep 90 17:21:08 GMT References: <230@locke.water.ca.gov> Sender: news@wrl.dec.com (News) Organization: DEC Western Software Lab Lines: 16 In-Reply-To: rfinch@caldwr.water.ca.gov's message of 31 Aug 90 23:22:37 GMT X-Checksum-Snefru: afcfd905 2321c353 617f9801 449b857b On 31 Aug 90 23:22:37 GMT, rfinch@caldwr.water.ca.gov (Ralph Finch) said: > After rebooting a Sun 4/260, SunOS 4.1, I find that sometimes 'if' > statements are mysteriously mishandled in the Bourne shell. Doing sh > -x on the scripts reveals that some if's are evaluated and then the > script dies without completing. Sounds like a "set -e" has been done somewhere. This causes the shell to quit if any command (including a test) fails (returns non-zero). James -- James Brister brister@decwrl.dec.com DEC Western Software Lab., Palo Alto, California. .....!decwrl!brister