Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!sunybcs!boulder!hao!oddjob!gargoyle!ddsw1!igloo!billw From: billw@igloo.UUCP (Bill Wisner) Newsgroups: comp.bugs.sys5 Subject: Re: sh bug Message-ID: <318@igloo.UUCP> Date: Wed, 11-Nov-87 23:23:11 EST Article-I.D.: igloo.318 Posted: Wed Nov 11 23:23:11 1987 Date-Received: Sun, 15-Nov-87 02:44:42 EST References: <467@virginia.acc.virginia.edu> <706@its63b.ed.ac.uk> Reply-To: billw@igloo.UUCP (Bill Wisner) Organization: HASA Lines: 13 In article <706@its63b.ed.ac.uk> simon@its63b.ed.ac.uk (Simon Brown) writes: >Dat's 'cos the first cd fails, so the shell interrupts itself (well, sort of), >and jumps straight back to command level - without executing the second part of >the "||". What you'll have to do is force the first component to be executed >in a subshell so it can't effect the second - like [example using (cd nowhere) deleted] Sorry, I'm afraid not. Doing a cd in a subshell will do absolutely no good. The subshell will change directories, but immediately afterwards it will exit, leaving the original shell back where it started. -- Bill Wisner ..{codas,ihnp4}!ddsw1!igloo!billw "I don't mind at all.." -- Bourgeois Tagg