From: dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de Subject: Re: Bash termcap and history file 16 Jan 1997 21:10:56 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <009AE7A3.1117D0E0.7364.cygnus.gnu-win32@ifk20.mach.uni-karlsruhe.de> Original-To: jt AT boxhill DOT com Original-CC: gnu-win32 AT cygnus DOT com, dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de Original-Sender: owner-gnu-win32 AT cygnus DOT com Hi, you wrote: : When bash reads a history file, it compares the size of the file as : reported by fstat(2) to the number of bytes returned by read(2). If : they are not equal, then bash will ignore the contents of the history : file. Opening in binary mode should help for the size check, but then you need to get rid of the last \r. Better handle gracefully in case there is no CR. And the CR might be needed and escaped somehow 8-) : I'm willing to post my version of bash (~256K) that fixes the history : problem to the mailing list if it is appropriate and if people are : interested. Sorry, but I don't have a publically accessible ftp site. Please don't send to the whole list, some people have to pay a lot! Better send directly to those requesting it and/or to one uploading it. If all else fails, I could ftp it to cygnus, although I have enough to do. Bye, Heribert (dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de) - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".