luj@gus16.ecn.purdue.edu (Jun Lu) (02/19/91)
ksh(1) states: The first character of an alias name can be any printable character, but the rest of the characters must be the same as for a valid identifier. So here it goes: alias +x=foo i.e. I want to creat an alias with name "+x". But above way didn't work. I also tried other ways to esacape "+" but all failed. Is this a bug in ksh or do I simply miss something ? Thanks, -- Jun -- -- Jun Lu Internet:luj@ecn.purdue.edu -- -- Aeronautics & Astronautics Bitnet: luj%ecn.purdue.edu@purccvm -- -- Purdue University UUCP: pur-ee!luj -- -- W. Lafayette, IN 47907 Phone:317-494-9410 Fax:317-494-0307 --
mvadh@cbnews.att.com (andrew.d.hay) (02/19/91)
In article <1991Feb19.052212.10229@noose.ecn.purdue.edu> luj@gus16.ecn.purdue.edu (Jun Lu) writes:
"ksh(1) states:
" The first character of an alias name can be any printable character,
" but the rest of the characters must be the same as for a valid
" identifier.
not true! i have
alias ^L="print \"$(tput clear)\c\""
"So here it goes:
"
" alias +x=foo
"
"i.e. I want to creat an alias with name "+x". But above way didn't work.
"I also tried other ways to esacape "+" but all failed. Is this a bug in ksh
"or do I simply miss something ?
try the old trick
alias -- +x=foo
^^
it works for me
--
Andrew Hay +------------------------------------------------------+
Ragged Individualist | JAAAAAAANE! |
AT&T-BL Ward Hill MA | HOW DO YOU STOP THIS CRAZY THING? |
a.d.hay@att.com +------------------------------------------------------+