Path: utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!usenet.ins.cwru.edu!cwns1!chet From: chet@cwns1.CWRU.EDU (Chet Ramey) Newsgroups: gnu.bash.bug Subject: Re: alias question Message-ID: <1989Dec18.001815.11079@usenet.ins.cwru.edu> Date: 18 Dec 89 00:18:15 GMT References: Reply-To: chet@po.CWRU.Edu (Chet Ramey) Distribution: gnu Organization: Case Western Reserve Univ. Cleveland, Ohio, (USA) Lines: 31 In article fischer@utower.gopas.sub.org writes: >BashVersion: 1.03 UPGRADE... >Ok, I thought, it's not like csh it's like ksh: > >alias rm="/bin/mv \$* /usr/spool/limbo" >"rm foo" > >mv tells me: "mv: foo exists" You're right. It's not like csh, it's like ksh. ksh and bash aliases do not take arguments; they are simple textual replacements. What you're doing up there is moving all of the command line args you gave bash along with /usr/spool/limbo to foo. This is what functions are for (modulo bugs, of course :-) >I can't use a function cause of the SIGIOT I get (the other posting) UPGRADE... Chet -- Chet Ramey Network Services Group "Where's my froggie?" Case Western Reserve University chet@ins.CWRU.Edu