[plug] bash: making cd persist after script has run
Anthony J. Breeds-Taurima
tony at cantech.net.au
Mon Feb 11 12:20:37 WST 2002
On Mon, 11 Feb 2002, Colin Muller wrote:
> 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?
Yeah basically environment variables.
Yours Tony.
/*
* "The significant problems we face cannot be solved at the
* same level of thinking we were at when we created them."
* --Albert Einstein
*/
More information about the plug
mailing list