ksh alias question (I'm not proud)
Steve Rudek
stever at tree.UUCP
Mon May 1 08:03:17 AEST 1989
I thought I'd save myself some typing by building a file of paths to all
my favorite directories and then defining the following alias.
alias G='cd `grep $1 /usr/local/ut/paths`'
It doesn't work--for the obviously reason that $1 isn't making it to the
subshell. I've tried all manner of nested quotes. Suggestions on how to
do this? I'd guess it could be done with an eval...but is that really
necessary?
More information about the Comp.unix.questions
mailing list