Article View: gnu.bash.bug
Article #1050Re: alias question
From: Chet Ramey
Date: Mon, 18 Dec 1989 00:18
Date: Mon, 18 Dec 1989 00:18
31 lines
1284 bytes
1284 bytes
In article <XXL&N*@utower.gopas.sub.org> 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
Technical Details
Message-ID:
<1989Dec18.001815.11079@usenet.ins.cwru.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!usenet.ins.cwru.edu!cwns1!chetReferences:
<XXL&N*@utower.gopas.sub.org>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <XXL&N*@utower.gopas.sub.org> Reply-To: chet@po.CWRU.Edu (Chet Ramey) Distribution: gnu Organization: Case Western Reserve Univ. Cleveland, Ohio, (USA) Lines: 31