This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CYGWIN: bug with 'tee' mxing UNIX and DOS text file mode


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]