Mail Archives: djgpp/2001/11/09/05:34:49
Robert Neinast <neinast AT worldnet DOT att DOT net> wrote:
> One more question: Is there any way to start up bash so that
> the default is "binary", not "text" mode (yes, I tried looking
> in the documentation).
No. And for a good reason, too: it's up to the programs being run to
decide what they need their input to be, not Bash. This *is* still a
DOS platform, after all, where at least some tools still fail
miserably if the supposed text files you feed them don't have \r\n
line ends.
> It really annoys me that programs like ls, wc, and od count those
> \r\n when its only \n that's there (i.e., they give false counts).
They don't count falsely: those bytes *are* in the file, so it's none
of their business assuming they're not. Not that the number of bytes
in a text file should ever be of importance. All DJGPP text tools
read text file in text mode, as they should, ironing out the
difference.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -