Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: .zsh_history bugreport



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