Re: bash ?
You probably need to use an alias, rather than a shell script. The problem is
that the shell script is performed in a new process, that has its own current
directory, and is forgotten when it exits
alias "cddoc=cd /usr/share/doc"
Put the alias in your bash startup file, that's ~/.bashrc or some such.
Alternatively, you can execute the shell script with dot:
. myscript
executes the script in the context of the current shell.
Mike
--
Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting
http://www.goingware.com
crawford@goingware.com
Tilting at Windmills for a Better Tomorrow.
"I give you this one rule of conduct. Do what you will, but speak
out always. Be shunned, be hated, be ridiculed, be scared,
be in doubt, but don't be gagged."
-- John J. Chapman, "Make a Bonfire of Your Reputations"
http://www.goingware.com/reputation/
Reply to: