Mail Archives: djgpp-workers/1999/01/26/02:45:56
On Mon, 25 Jan 1999, Mark E. wrote:
> Redirected output is now opened in binary mode instead of text mode.
This actually worries me. Most programs expect their stdout be in text
mode by default, and this change might break them. Programs usually
switch stdout to binary mode if needed, but most of them won't bother to
switch to text mode, on the assumption that it already is that way.
> This is to (hopefully) prevent mixed EOL styles that confuse Bash with
> libtool, etc. generated files.
Isn't it a better idea to fix whatever reason causes Bash to become
confused with mixed EOL format? It's usually best to solve the bug at
the place where it happens, instead of looking for ways of working around
it.
Can you describe why does Bash barf on mixed DOS/Unix files? AFAIK, no
other text-processing program cares too much about such files. Why Bash
is different?
- Raw text -