🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #986

Re: sh weirdness

#986
From: James Brister
Date: Sat, 01 Sep 1990 17:21
16 lines
1239 bytes
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
Technical Details
Message-ID: <BRISTER.90Sep1102108@westworld.decwrl.dec.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!rutgers!mephisto!udel!haven!decuac!shlump.nac.dec.com!rust.zso.dec.com!bacchus.pa.dec.com!decwrl!brister
References: <230@locke.water.ca.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <BRISTER.90Sep1102108@westworld.decwrl.dec.com>
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