R: How to make cygwin redirect in UNIX mode?
Marco Atzeri
marco_atzeri@yahoo.it
Mon Jun 8 09:59:00 GMT 2009
--- Lun 8/6/09, Pan ruochen ha scritto:
> Da: Pan ruochen
> Oggetto: How to make cygwin redirect in UNIX mode?
> A: cygwin@cygwin.com
> Data: Lunedì 8 giugno 2009, 11:40
> Hi All,
>
> I do as the manual (http://cygwin.com/cygwin-ug-net/using-textbinary.html)
> says:
> When redirecting, the Cygwin shells uses rules (a-e). For
> these shells
> the relevant value of CYGWIN is that at the time the shell
> was
> launched and not that at the time the program is executed.
> Non-Cygwin
> shells always pipe and redirect with binary mode. With
> non-Cygwin
> shells the commands cat filename | program and
> program < filename
> are not equivalent when filename is on a text-mounted
> partition.
>
> I have edited c:\cygwin\cygwin.bat as:
> @echo off
> set CYGWIN=binmode
> C:
> chdir C:\cygwin\bin
> bash --login -i
>
> After I relaunch cygwin and run:
> echo abc > a.txt
>
> The file a.txt is in DOS format, not in UNIX.
> What's wrong then?
>
1)
To help on trouble shooting, please
cygcheck -s -v -r -h > cygcheck_output.txt
and send us the result.
See
http://cygwin.com/cygwin-ug-net/using-utils.html#cygcheck
2)
I guess that you installed cygwin in text mode
what does "mount" report ?
Regards
Marco
--
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/
More information about the Cygwin
mailing list