public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* fileutil cat program
@ 1999-06-17 16:21 Earnie Boyd
  1999-06-17 16:39 ` DJ Delorie
  1999-06-30 22:10 ` Earnie Boyd
  0 siblings, 2 replies; 6+ messages in thread
From: Earnie Boyd @ 1999-06-17 16:21 UTC (permalink / raw)
  To: cygwin users

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?

TIA,
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@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: fileutil cat program
  1999-06-17 16:21 fileutil cat program Earnie Boyd
@ 1999-06-17 16:39 ` DJ Delorie
  1999-06-30 22:10   ` DJ Delorie
  1999-06-30 22:10 ` Earnie Boyd
  1 sibling, 1 reply; 6+ messages in thread
From: DJ Delorie @ 1999-06-17 16:39 UTC (permalink / raw)
  To: earnie_boyd; +Cc: cygwin

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);"

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.

> 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?

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: fileutil cat program
  1999-06-17 16:39 ` DJ Delorie
@ 1999-06-30 22:10   ` DJ Delorie
  0 siblings, 0 replies; 6+ messages in thread
From: DJ Delorie @ 1999-06-30 22:10 UTC (permalink / raw)
  To: earnie_boyd; +Cc: cygwin

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);"

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.

> 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?

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* fileutil cat program
  1999-06-17 16:21 fileutil cat program Earnie Boyd
  1999-06-17 16:39 ` DJ Delorie
@ 1999-06-30 22:10 ` Earnie Boyd
  1 sibling, 0 replies; 6+ messages in thread
From: Earnie Boyd @ 1999-06-30 22:10 UTC (permalink / raw)
  To: cygwin users

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?

TIA,
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@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: fileutil cat program
  1999-06-18  4:42 Earnie Boyd
@ 1999-06-30 22:10 ` Earnie Boyd
  0 siblings, 0 replies; 6+ messages in thread
From: Earnie Boyd @ 1999-06-30 22:10 UTC (permalink / raw)
  To: DJ Delorie; +Cc: cygwin

--- DJ Delorie <dj@delorie.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@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: fileutil cat program
@ 1999-06-18  4:42 Earnie Boyd
  1999-06-30 22:10 ` Earnie Boyd
  0 siblings, 1 reply; 6+ messages in thread
From: Earnie Boyd @ 1999-06-18  4:42 UTC (permalink / raw)
  To: DJ Delorie; +Cc: cygwin

--- DJ Delorie <dj@delorie.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@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-06-30 22:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-17 16:21 fileutil cat program Earnie Boyd
1999-06-17 16:39 ` DJ Delorie
1999-06-30 22:10   ` DJ Delorie
1999-06-30 22:10 ` Earnie Boyd
1999-06-18  4:42 Earnie Boyd
1999-06-30 22:10 ` Earnie Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).