Article View: gnu.bash.bug
Article #349Alias bug in BASH 1.01
From: jkh
Date: Tue, 18 Jul 1989 19:40
Date: Tue, 18 Jul 1989 19:40
29 lines
1197 bytes
1197 bytes
The alias code is broken. Try the following:
bash% alias retch='echo \!*'
bash% retch foo bar blat
!* foo bar blat
bash%
The !* should expand into the current arg list, ala csh.
None of the other !<arg> constructs work in aliases either.
Jordan
P.S.:
function setenv () {
eval $1=$2
export $2
}
Works like a charm! Good job! I was all set to gripe about
not having setenv and being used to it and all, then I tried
that.. Ahem.. Never mind.
--------
Jordan Hubbard
PCS Computer Systeme GmbH
West Germany
UUCP: {uunet,decwrl}!pyramid!pcsbst!jkh
ARPA: jkh@violet.berkeley.edu
Technical Details
Message-ID:
<926@pcsbst.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!unido!pcsbst!jkhShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!unido!pcsbst!jkh From: jkh@pcsbst.UUCP (jkh) Newsgroups: gnu.bash.bug Subject: Alias bug in BASH 1.01 Message-ID: <926@pcsbst.UUCP> Date: 18 Jul 89 19:40:59 GMT Reply-To: jkh@meepmeep.pcs.com ( Jordan K. Hubbard ) Organization: PCS GmbH, Pfaelzer-Wald-Str. 36, 8000 Muenchen; West-Germany Lines: 29