This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: mounts, ls, and filename completion


At 07:32 PM 8/20/98 GMT, Michael Weiser wrote:
>Hello Earnie,
>
>You wrote:
>
>>> Hmm, I didn't think that you have to change bash or ash to use binary
>>> pipes. At least in DOS programs you can set stdin and stdout into
>>binary
>>> mode and don't have to change command.com. I don't know if this can
>>also
>>> be done in Win32 console programs. I thought that the Cygwin.dll would
>>> handle this, so binary mode would/should work with every
>>Cygwin-compiled
>>> program, regardless if I use bash or command.com.
>>> 
>>Shell piping is controlled by the shell.  If the coding for the shell
>>isn't correct then you have to fix the code for the shell.  Win32
>>piping should work fine for cmd.exe.  You've gotta fix the bash shell
>>to use binary pipes and IMHO it shouldn't be an option it should
>>always open the pipes in binary mode.
>Doesn't the binmode setting for the CYGWIN32 environment variable
>affect bash's pipes?
>
>bye
>
>Michael


Personally, I agree with Earnie.  I don't see any reason why pipes, etc
need to be text mode.  Anyway, at the moment, we're stuck with what comes
from Cygnus by default, which means pipes are text mode.  Assuming that
we will not get agreement on the subject of making pipes binary for good,
I think a switch would be the next best alternative (perhaps the current 
binmode switch could be used?)  However, currently with the source 
distributed with b19.x, pipes ARE text.  There is no facility for making 
them binary.  It is hard-coded.  I'll make a change to the bash source to 
check the binmode switch if nobody objects that this is bad pragmatically...


Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      (781) 239-1053
8 Grove Street                          (781) 239-1655 - FAX
Wellesley, MA  02482-7797               http://www.rfk.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]