ksh prompt
lawrence.v.cipriani
lvc at cbnews.att.com
Mon Mar 4 23:32:15 AEST 1991
In article <57517 at mcdchg.chg.mcd.mot.com> heiby at mcdchg.chg.mcd.mot.com (Ron Heiby) writes:
># Define the replacement for the "cd" builtin
>function ch {
> if cd ${*:-''}
> then
> resetps1
> else
> return 1
> fi
>}
>alias cd=ch # make it easy to use
I suggest the cd in function ch be quoted:
function ch {
if "cd" ${*:-''}
then
resetps1
else
return 1
fi
alias cd=ch
so that a second ". $ENV" will not see 'ch' inside of function ch.
Why not use "${@:-''}" instead of ${*:-''} ?
--
Larry Cipriani, att!cbvox!lvc or lvc at cbvox.att.com
"Fight fire with fire, I always say" -- Bugs Bunny
More information about the Comp.unix.shell
mailing list