Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uwm.edu!linac!att!cbnews!mvadh From: mvadh@cbnews.att.com (andrew.d.hay) Newsgroups: comp.unix.shell Subject: Re: alias in KSH ? Message-ID: <1991Feb19.123249.29027@cbnews.att.com> Date: 19 Feb 91 12:32:49 GMT References: <1991Feb19.052212.10229@noose.ecn.purdue.edu> Distribution: na Organization: AT&T Bell Laboratories Lines: 27 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 +------------------------------------------------------+