Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: .zsh_history bugreport
- X-seq: zsh-workers 16195
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: .zsh_history bugreport
- Date: Tue, 30 Oct 2001 10:25:20 -0800 (PST)
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <1011030173655.ZM30372@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
On Tue, 30 Oct 2001, Bart Schaefer wrote:
> 16184 probably should go onto the patches branch, too.
Cool. I just put it there.
One other potential change: Should readhistline() return "start"
instead of "0" when fgets() fails? Having fgets() fail with a non-0
start value doesn't look like a very common scenario (because of the
feof() calls), but if we've got some characters in the string, I figure
we might as well return them. Do you agree?
Index: Src/hist.c
--- Src/hist.c 2001/10/26 23:47:10 1.36
+++ Src/hist.c 2001/10/30 18:19:46
@@ -1793,7 +1793,7 @@
}
return len;
}
- return 0;
+ return start;
}
/**/
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author