delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/06/18/07:43:54

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <19990618114148.27790.rocketmail@web124.yahoomail.com>
Date: Fri, 18 Jun 1999 04:41:48 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: fileutil cat program
To: DJ Delorie <dj AT delorie DOT com>
Cc: cygwin AT sourceware DOT cygnus DOT com
MIME-Version: 1.0

--- DJ Delorie <dj AT delorie DOT com> wrote:
> 
> First off, such a patch would be too small to warrant legal papers.
> It would probably look like "if (!isatty(0)) setmode(1, O_BINARY);"

more like "if (!isatty(1)) setmode(0, O_BINARY);"

> 
> Second, is this really what you want?  The DJGPP port of fileutils
> uses "-b" to indicate binary mode.  Doing it automatically may create
> subtle bugs.

The -b is already take for "number nonblank output lines", however, I've never
used this switch so I'd be in favor of changing the meaning.

> 
> > Could someone whose already signed the Cygnus release forms submit a
> > patch for the cat program such that if the output is to a pipe or
> > redirection that the input is processed in binary mode?
> 

Thanks,
Earnie.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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