Path: utzoo!attcan!uunet!husc6!cmcl2!rutgers!topaz.rutgers.edu!ron From: ron@topaz.rutgers.edu (Ron Natalie) Newsgroups: comp.unix.questions Subject: Re: changing dir inside shell Message-ID: Date: 26 Jul 88 19:39:09 GMT References: <47800013@uxe.cso.uiuc.edu> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 11 You can't. Directory changing is a per process thing. A cd in a shell file will only change the directory for the duration of that shell file. You need to get the cd interpreted by the interactive shell. Assuming you have a 5R2 or later Bourne Shell, try something like this: mover() { cp *.me /usr/tmp cd /usr/tmp }