ash stdin mode is set to O_TEXT

egor duda
Sun Apr 22 23:41:00 GMT 2001


Sunday, 22 April, 2001 Corinna Vinschen 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 < foo
        cat foo | sh -c
? shouldn't it be O_BINARY in both cases here?

Egor.   ICQ 5165414 FidoNet 2:5020/496.19

More information about the Cygwin-apps mailing list