🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Gregory Bond Thu, 24 Aug 1989 02:13
BugFix: bash-1.02 !^ history arg spec now works
#496
Author: Gregory Bond
Date: Thu, 24 Aug 1989 02:13
34 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads