Article View: gnu.bash.bug
Article #496BugFix: bash-1.02 !^ history arg spec now works
From: Gregory Bond
Date: Thu, 24 Aug 1989 02:13
Date: Thu, 24 Aug 1989 02:13
34 lines
1500 bytes
1500 bytes
A fix to the annoying "!^: event not found" bug. Easy, once you work
out where to look...
*** lib/history.c.orig Thu Aug 24 12:04:54 1989
--- lib/history.c Thu Aug 24 12:05:48 1989
***************
*** 758,768 ****
goto hack_pound_sign;
/* If it is followed by something that starts a word specifier,
then !! is implied as the event specifier. */
! if (member (cc, ":$*%")) {
char fake_s[2];
int fake_i = 0;
i++;
fake_s[0] = fake_s[1] = history_expansion_char;
fake_s[2] = '\0';
--- 758,768 ----
goto hack_pound_sign;
/* If it is followed by something that starts a word specifier,
then !! is implied as the event specifier. */
! if (member (cc, ":$*%^")) {
char fake_s[2];
int fake_i = 0;
i++;
fake_s[0] = fake_s[1] = history_expansion_char;
fake_s[2] = '\0';
--
Gregory Bond, Burdett Buckeridge & Young Ltd, Melbourne, Australia
Internet: gnb@melba.bby.oz.au non-MX: gnb%melba.bby.oz@uunet.uu.net
Uucp: {uunet,pyramid,ubc-cs,ukc,mcvax,prlb2,nttlab...}!munnari!melba.bby.oz!gnb
Technical Details
Message-ID:
<8908240213.AA16373@baby.bby.oz>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!melba.bby.oz.au!gnbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!melba.bby.oz.au!gnb From: gnb@melba.bby.oz.au (Gregory Bond) Newsgroups: gnu.bash.bug Subject: BugFix: bash-1.02 !^ history arg spec now works Message-ID: <8908240213.AA16373@baby.bby.oz> Date: 24 Aug 89 02:13:12 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 34