Path: 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 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