| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| References: | <46A4BC14 DOT 1050603 AT merl DOT com> <46A4ED4A DOT 9060303 AT merl DOT com> <013c01c7cd54$9dabd6e0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> |
| Subject: | RE: 1.5.24: data corruption problem with popen and gzip on a text mounted filesystem |
| Date: | Mon, 23 Jul 2007 19:26:20 +0100 |
| Message-ID: | <013f01c7cd56$f7596160$2e08a8c0@CAM.ARTIMI.COM> |
| MIME-Version: | 1.0 |
| X-Mailer: | Microsoft Office Outlook 11 |
| In-Reply-To: | <013c01c7cd54$9dabd6e0$2e08a8c0@CAM.ARTIMI.COM> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 23 July 2007 19:10, Dave Korn wrote:
> Yeh, 'cat' is special: it absolutely guaranteed 100% always always always
> uses bin mode, regardless of mount type, stdio mode, shell
> direction/redirection/misdirection and indeed anything else at all.
Ho hum. Let me correct myself: regardless of anything except certain of
the command-line options it accepts. JFTR, here's the man page describing the
exact rule:
" On systems like MS-DOS that distinguish between text and binary
files, `cat' normally reads and writes in binary mode. However, `cat'
reads in text mode if one of the options `-bensAE' is used or if `cat'
is reading from standard input and standard input is a terminal.
Similarly, `cat' writes in text mode if one of the options `-bensAE' is
used or if standard output is a terminal. "
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |