delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/06/18:19:44

From: max AT susato DOT demon DOT co DOT uk (Max Hadley)
Subject: A pipe, a binary pipe...
6 Jan 1999 18:19:44 -0800 :
Message-ID: <001801be39b8$1caf5190$016464c0.cygnus.gnu-win32@susato.demon.co.uk>
Mime-Version: 1.0
To: "Cygwin mailing list" <gnu-win32 AT cygnus DOT com>

Dear list,

What are the rules cygwin uses for deciding whether stdin & stdout are
treated as text or binary? I have a program which works when I do:

    MyProgram < a_file

but not when I do:

    cat a_file | MyProgram

Can I tell what the mode of an already-open stream is, or one tell to
switch modes from text to binary? BTW, my $CYGWIN is "noglob noreset_com
noenvcache". Come to that, a nice way of testing whether an open stream
is a pipe would be usefull!

Thanks

Max Hadley

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019