alias in KSH ?

andrew.d.hay mvadh at cbnews.att.com
Tue Feb 19 23:32:49 AEST 1991


In article <1991Feb19.052212.10229 at noose.ecn.purdue.edu> luj at 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 at att.com		+------------------------------------------------------+



More information about the Comp.unix.shell mailing list