This is the mail archive of the cygwin 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: How to setup cygwin to use "always" testmode

On 03/18/2011 01:43 AM, Ralf wrote:
> 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?

Use cygpath to convert the filename to POSIX style, so that you never
open a DOS path.

Eric Blake    +1-801-349-2682
Libvirt virtualization library

Attachment: signature.asc
Description: OpenPGP digital signature

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