delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/01/10:52:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 1 Apr 2003 10:52:20 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: =?ISO-8859-1?Q?Fr=E9d=E9ric_Bazin?= <fb AT gre DOT fr>
cc: cygwin AT cygwin DOT com
Subject: Re: CYGWIN: bug with 'tee' mxing UNIX and DOS text file mode
In-Reply-To: <3E89B2F0.8000708@gre.fr>
Message-ID: <Pine.GSO.4.44.0304011050400.21921-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Tue, 1 Apr 2003, Frédéric Bazin wrote:

> Hello,
> I experience some amazing behaviour with tee and text files.
>
> I installed cygwin  ( various release during the past three months )
> with DOS text file mode.
>
> most of the command tools seems to work fine except 'tee'
>
> when I type
>
> echo blablalbalbal | tee  test.txt
> echo blablalbalbal | tee -a test.txt
> echo blablalbalbal | tee -a test.txt
>
> test.txt is a UNIX mode text file !!
>
> when I type
>
> cat > tee test.txt
>
> and then type several line and finally ctrl-C
> test.txt is a DOS mode text file :D
>
> when I type
> echo blablalbalbal > test.txt
> echo blablalbalbal >> test.txt
> echo blablalbalbal >> test.txt
>
> test.txt is a DOS mode text file :D

<http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>, section on
"binmode".
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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