From: lhall AT rfk DOT com (Larry Hall) Subject: Re: mounts, ls, and filename completion 22 Aug 1998 14:26:56 -0700 Message-ID: <3.0.5.32.19980821092501.009bd100.cygnus.gnu-win32@pop.ma.ultranet.com> References: <199808201932 DOT VAA07488 AT weiser DOT saale-net DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: michael AT weiser DOT saale-net DOT de (Michael Weiser), earnie_boyd AT yahoo DOT com Cc: gnu-win32 AT cygnus DOT com 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 AT rfk DOT 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 AT cygnus DOT com" with one line of text: "help".