Thread View: comp.unix.shell
3 messages
3 total messages
Started by Ralph Finch
Fri, 31 Aug 1990 23:22
sh weirdness
Author: Ralph Finch
Date: Fri, 31 Aug 1990 23:22
Date: Fri, 31 Aug 1990 23:22
13 lines
949 bytes
949 bytes
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. This leaves my machine in a fairly crippled state; does anybody have an idea on how to fix it? Reboots including cold starts have no effect. -- Ralph Finch 916-445-0088 rfinch@water.ca.gov ...ucbvax!ucdavis!caldwr!rfinch Any opinions expressed are my own; they do not represent the DWR
Re: sh weirdness
Author: James Brister
Date: Sat, 01 Sep 1990 17:21
Date: Sat, 01 Sep 1990 17:21
16 lines
1239 bytes
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
Re: sh weirdness; fixed but not solved
Author: Ralph Finch
Date: Sat, 01 Sep 1990 18:39
Date: Sat, 01 Sep 1990 18:39
13 lines
909 bytes
909 bytes
Thanks to all who responded. One suggestion was to copy sh from the distribution tape. Somehow sh had a modification date of Aug 30; copying sh from another machine fixed it. I have no idea how it changed or what changed; # of bytes is identical but cmp said byte # 24585 was different. I hate mysteries. -- Ralph Finch 916-445-0088 rfinch@water.ca.gov ...ucbvax!ucdavis!caldwr!rfinch Any opinions expressed are my own; they do not represent the DWR
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads