[plug] bash: making cd persist after script has run

Colin Muller colin at twobluedots.com.au
Mon Feb 11 10:46:10 WST 2002


On Mon, Feb 11, 2002 at 10:35:12AM +0800, Anthony J. Breeds-Taurima wrote:
> ~$ cat ~/bin/ccd 
> cd ~/src/$1
> ~$ alias CCD='. ~/bin/ccd' 
> ~$ CCD perl
> ~/src/perl$ CCD c

Yes, this works, case statement and all.

What sort of pollution might leak back to the shell if it gets more
complex - changed environment variables?

Colin



More information about the plug mailing list