01-19-06 11:24 PM
Hi,
in csh/tcsh I have an alias
alias cd 'cd \!*; echo $cwd'
and I would like to have this in bash-2.
The man page says I cannot refer to arguments in an alias,
I need a function.
In a function I can refer to it as "$@", but
cd(){
\cd "$@"
echo $PWD
}
continuesly calls itself, because the escape \cd
does not work for a function (only works for an alias).
Suggestions?
--
Michael Tosch @ hp : com
[ Post a follow-up to this message ]
|