🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #575

small bug in history builtin

#575
From: Jeff Sparkes
Date: Mon, 11 Sep 1989 15:48
26 lines
951 bytes
This showed up on a sun4.  history_list() returns a null list, which
history_builtin() tries to walk through.

*** ../b3/builtins.c	Wed Aug 30 23:41:21 1989
--- ./builtins.c	Mon Sep 11 12:14:59 1989
***************
*** 1593,1599 ****
    int limit;
    register int i;
  
!   for (i = 0; hlist[i]; i++);
  
    if (list)
      {
--- 1593,1599 ----
    int limit;
    register int i;
  
!   for (i = 0; hlist && hlist[i]; i++);
  
    if (list)
      {
-- 
Jeff Sparkes	jeff1@garfield.mun.edu || uunet!garfield!jeff1

					
Technical Details
Message-ID: <425@stretch.MUN.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!garfield!stretch!jeff1

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!garfield!stretch!jeff1
From: jeff1@stretch.MUN.EDU (Jeff Sparkes)
Newsgroups: gnu.bash.bug
Subject: small bug in history builtin
Message-ID: <425@stretch.MUN.EDU>
Date: 11 Sep 89 15:48:20 GMT
Organization: CS Dept., Memorial U. of Newfoundland, St. John's
Lines: 26