NetBSD Problem Report #928
From gnats Thu Mar 30 06:25:45 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id GAA02570 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 30 Mar 1995 06:25:44 -0800
Message-Id: <9503301425.AA19256@leidecker.gsfc.nasa.gov>
Date: Thu, 30 Mar 95 09:25:54 -0500
From: Kenneth Stailey <kstailey@leidecker.gsfc.nasa.gov>
To: gnats-bugs@NetBSD.ORG
Subject: sh dumping core on fc -l
X-Send-Pr-Version: 3.2
>Number: 928
>Category: bin
>Synopsis: sh dumping core on fc -l
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 30 06:35:01 +0000 1995
>Closed-Date: Sun Jan 14 02:26:22 +0000 1996
>Last-Modified: Sun Jan 14 02:27:14 +0000 1996
>Originator: Kenneth Stailey
>Release: NetBSD 1.0A March 18 1995
>Organization:
bug report cleanup crew
>Environment:
System: NetBSD pluto 1.0A NetBSD 1.0A (PLUTO) #25: Tue Mar 28 13:17:39 EST 1995 ken@pluto:/usr/src/sys/arch/i386/compile/PLUTO i386
>Description:
On a "fc -l" (no additional params the sh dumps core.
The syntax allowes this but the parser in histedit.c barfs.
a simple test in not_fcnumber() fixes this.
>How-To-Repeat:
using /bin/sh type "fc -l"
>Fix:
--- histedit.c.DIST Thu Mar 30 09:23:55 1995
+++ histedit.c Wed Mar 29 18:15:32 1995
@@ -402,6 +402,8 @@
not_fcnumber(s)
char *s;
{
+ if (s == NULL)
+ return 0;
if (*s == '-')
s++;
return (!is_number(s));
--JAA00492.796573475/pluto.spacenet.com--
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: thorpej
State-Changed-When: Sat Jan 13 18:26:22 PST 1996
State-Changed-Why:
This has been fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.