Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!ulysses!hector!ekrell From: ekrell@hector.UUCP (Eduardo Krell) Newsgroups: comp.unix.questions Subject: Re: Changing Directory Keywords: cd Message-ID: <11968@ulysses.homer.nj.att.com> Date: 3 Aug 89 19:39:43 GMT References: <5068@mtuxo.att.com> <9730@alice.UUCP> Sender: netnews@ulysses.homer.nj.att.com Reply-To: ekrell@hector.UUCP (Eduardo Krell) Distribution: usa Organization: AT&T Bell Laboratories Lines: 12 In article <9730@alice.UUCP> debra@alice.UUCP () writes: >You cannot put the "cd longfilename" in a shell script and execute it >as the 'current directory' is only inherited from parent to child Unless, of course, you use the "." command in the shell ("source" in csh) to execute the script in the current shell environment instead of forking a new shell. Eduardo Krell AT&T Bell Laboratories, Murray Hill, NJ UUCP: {att,decvax,ucbvax}!ulysses!ekrell Internet: ekrell@ulysses.att.com