Subject: sh dumping core on fc -l
To: None <current-users%sun-lamp.cs.berkeley.edu%uhm@nak.Berkeley.EDU>
From: Gerard J van der Grinten <gvdg@fridley.pa0gri.ampr.org>
List: current-users
Date: 03/29/1995 19:00:06
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.
The mod (around line 402):
int
not_fcnumber(s)
char *s;
{
+ if ( s == NULL )
+ return 0;
if (*s == '-')
s++;
return( (!is_number(s));
}
Regards, Gerard.
--
Gerard J van der Grinten amprnet: pa0gri@net.pa0gri.ampr.org [44.137.1.1]
Elzenlaan 8 internet: gvdg@nlr.nl
3467 TJ Driebruggen uucp/bbs: gvdg@fridley.uucp (+031)-3487-2359 9600B
Netherlands phone: (+031)-3487-1606 Home. (+031) - Qrl.
After 10-10-95 number change: (+031)-348-501606 and (+031)-348-502359