Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: .zsh_history bugreport
- X-seq: zsh-workers 16194
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: .zsh_history bugreport
- Date: Tue, 30 Oct 2001 17:36:55 +0000
- In-reply-to: <Pine.LNX.4.21.0110261616050.7802-100000@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <Pine.LNX.4.21.0110261616050.7802-100000@xxxxxxxxxxxxxx>
On Oct 26, 4:29pm, Wayne Davison wrote:
} Subject: Re: .zsh_history bugreport
}
} On Fri, 26 Oct 2001, Bart Schaefer wrote:
} > So if fgets() returns nonzero but buf didn't get any longer, start ==
} > l and (start >= l) is true and so we return -1.
}
} The problem occurs when the buf DOES get longer, even just 1 character
} longer. In this case, the '\0' byte was not at the start of the line,
OK, I concur (though I'm surprised that every one of the assorted binary
files I tried feeding to my version had at least one "\n\0" in it).
16184 probably should go onto the patches branch, too.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author