www.delorie.com/archives/browse.cgi | search |
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 <marco_atzeri AT yahoo DOT it> |
Subject: | R: How to make cygwin redirect in UNIX mode? |
To: | cygwin AT cygwin DOT com, Pan ruochen <panruochen AT gmail DOT com> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
--- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |