Mail Archives: djgpp/2000/08/16/08:05:36
> From: Jeff T Williams <jeffw AT darwin DOT sfbr DOT org>
> Date: Wed, 16 Aug 2000 04:43:03 -0600
>
> With the DJGPP port of bash 2.03 I note that
> 'history' terminates each output line with '\r\n' instead of just '\n'.
Yes, that's how the DJGPP port of the Readline library works: it does
file I/O in text mode.
> Is this the expected behavior?
It was a deliberate decision to leave the I/O at text mode, yes.
Personally, I'm not happy about it. The redirection to a Unix-style
file is a nuisance, but I'm concerned about the more serious case
where a non-printable character such as Ctrl-Z sneaks into the history
file due to some peculiar set of commands.
At the time, I submitted patches to Readline to use binary I/O for
history files, but those patches did not make it into the current
sources. Since the problematic cases are marginal, I didn't protest
too vociferously.
- Raw text -