delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/18/03:50:22

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Ralf <wiesweg AT tacos-gmbh DOT de>
Subject: How to setup cygwin to use "always" testmode
Date: Fri, 18 Mar 2011 07:43:26 +0000 (UTC)
Lines: 14
Message-ID: <loom.20110318T083042-612@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
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

I'm using cygwin under windows to change text-files with windows line-endings 
(CR and LF). I wrote a lot of shell-scripts which call each other. The 
filenames in those scripts are sometimes given als windows filenames (e.g. 
c:\temp\file.txt) sometimes relative (e.g. ../tmp/file.txt) sometimes as unix 
filenames (e.g. /c/temp/file.txt) and sometimes without any directory (e.g. 
file.txt)

The current versions of cygwin now only use entries from fstab to determine 
the mode but this will break all my scripts because the same file will 
sometimes be treated as binary (filename c:\temp\file.txt) and sometimes as 
text (filename /c/temp/file.txt).

So is there a way to say 'use always textmode' like it was possible in former 
releases?


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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