Changing Directory

Eduardo Krell ekrell at hector.UUCP
Fri Aug 4 05:39:43 AEST 1989


In article <9730 at alice.UUCP> debra at 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 at ulysses.att.com



More information about the Comp.unix.questions mailing list