delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/21/23:30:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <20020422032944.78765.qmail@web20805.mail.yahoo.com>
Date: Mon, 22 Apr 2002 11:29:44 +0800 (CST)
From: =?iso-8859-1?q?lau=20bella?= <bellalauhk AT yahoo DOT com DOT hk>
Subject: binmode ? dos2unix ?
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

In w2k advanced server (Service Pack 2), i have local
drive c:, d:, e:, f:. In cygwin, the default mount : 

d:\cygwin\bin on /usr/bin type system (binmode) 
d:\cygwin on /usr/lib type system (binmode)
c:\ on  /cygdrive/c type system (textmode) 
d:\ on /cygdrive/d type system (textmode) 
e:\ on /cygdrive/e type system (textmode) 
f:\ on /cygdrive/f type system (textmode)

I set CYGWIN=ntsec in system environment and registry.

Cygwin is installed in d:\.
I make home directory in f:\. The following actions
are done in f:\ :
1. I have a perl script which will generate a output
file. I use perl complier provided by Cygwin
(/usr/perl) to run the perl script. The file size of
the output file decrease when i run "dos2unix". Thus,
i think the output file is in DOS format (with ^M
control character). 

2. I use Cygwin ftp server to ftp file from PC (say
w2k professional) to the w2k Server f:\. The file size
also
decrease when i run "dos2unix" command. i use ascii
mode to ftp.

3. When i use "vi" to create file in cygwin and run
dos2unix, the file size is NOT change.

I think i miss some setting in Cygwin, so the files in
point 1 and 2 are in DOS format, but not for point 3. 

Do i need to change mount point e.g. (f:\) to binmode,
how to do it ? 

thanks a lot :-) 

bella 

_______________________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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