X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <818117.50362.qm@web25003.mail.ukl.yahoo.com> Date: Mon, 8 Jun 2009 09:59:26 +0000 (GMT) From: Marco Atzeri Subject: R: How to make cygwin redirect in UNIX mode? To: cygwin AT cygwin DOT com, Pan ruochen MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --- Lun 8/6/09, Pan ruochen ha scritto: > Da: Pan ruochen=20 > Oggetto: How to make cygwin redirect in UNIX mode? > A: cygwin AT cygwin DOT com > Data: Luned=EC 8 giugno 2009, 11:40 > Hi All, >=20 > 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=A0 cat filename | program and=A0 > program < filename > are not equivalent when filename is on a text-mounted > partition. >=20 > I have edited c:\cygwin\cygwin.bat as: > @echo off > set CYGWIN=3Dbinmode > C: > chdir C:\cygwin\bin > bash --login -i >=20 > After I relaunch cygwin and run: > echo abc > a.txt >=20 > The file a.txt is in DOS format, not in UNIX. > What's wrong then? >=20 1)=20 To help on trouble shooting, please=20 cygcheck -s -v -r -h > cygcheck_output.txt and send us the result.=20 See http://cygwin.com/cygwin-ug-net/using-utils.html#cygcheck 2)=20 I guess that you installed cygwin in text mode what does "mount" report ?=20 Regards Marco =20=20=20=20=20 -- 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/