ash stdin mode is set to O_TEXT

egor duda deo@logos-m.ru
Sun Apr 22 23:41:00 GMT 2001


Hi!

Sunday, 22 April, 2001 Corinna Vinschen cygwin-apps@cygwin.com wrote:

>> But then, if ash is reading from a pipe, stdin should, IMO, be in binary
>> mode.

CV> That's really tricky:

CV>         sh < foo                O_TEXT?
CV>         cat foo | sh            O_BINARY?

how about

        sh -c bar.sh < foo
        cat foo | sh -c bar.sh
? shouldn't it be O_BINARY in both cases here?

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19




More information about the Cygwin-apps mailing list