changing dir inside shell

bianco at uxe.cso.uiuc.edu bianco at uxe.cso.uiuc.edu
Tue Jul 26 06:17:00 AEST 1988


I have the following in a file called 'mover':
 cp *.me /usr/tmp
 cd /usr/tmp 
Upon entering 'sh mover' the files are copied, and the directory is
changed, however the shell is then exited and the current directory
is changed back to my home directory. How can I cause the shell to exit
in the directory I changed to ? 

-nick
----------------------------------------------------------
bianco at uiuc.uxe.cso.edu  or  bianco at uiucvmd.cso.uiuc.edu
----------------------------------------------------------
"Nothing is given to man on earth except a potential and the material on which
 to actualize it."           
   Ayn Rand



More information about the Comp.unix.questions mailing list