www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/12/14:34:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: 1.7.0 /cygdrive text/binary behavior
Date: Thu, 12 Feb 2009 14:34:24 -0500
Message-ID: <EA7F98B74DA09B4F9A806BA0DA2B56FB05B08A92@ALPMLVEM14.e2k.ad.ge.com>
From: "Garber, Dave (GE Infra, Energy, Non-GE)" <dave DOT garber AT ge DOT com>
To: <cygwin AT cygwin DOT com>
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

Hi,

I've been testing out the 1.7.0-40 release and noticed an odd behavior
with /cygdrive.  Without any modifications, when I try to run a script
from /cygdrive/v, I get errors due to the trail '\r' characters.  This
is expected since /cygdrive/v is a binary mount.  So, I add an entry
into fstab to make /cygdrive/v be a text mount:

V: /cygdrive/v netapp text 0 0

The script still fails with the same errors due to '\r'.  So, I add
another fstab entry:

V: /v netapp text 0 0=20

Which is the same thing, but not under the special /cygdrive and running
the script from that works.  So I'm guessing that Cygwin assumes all
/cygdrive mounts to be binary regardless of what is specified in fstab.
That's fine, but mount (see below) shows both being text.  So Cygwin
should either 1) honor the mount type in fstab (my pick) or 2) show that
cygdrive is really being mounted as binary.

$ mount
C:/Apps/cygwin/bin on /usr/bin type ntfs (binary)
C:/Apps/cygwin/lib on /usr/lib type ntfs (binary)
C:/Apps/cygwin on / type ntfs (binary)
D:/Users on /users type ntfs (binary)
V: on /cygdrive/v type netapp (text)   < see here
V: on /v type netapp (text)            < and here
C: on /cygdrive/c type ntfs (binary,posix=3D0,user,noumount)
D: on /cygdrive/d type ntfs (binary,posix=3D0,user,noumount)
M: on /cygdrive/m type vfat (binary,posix=3D0,user,noumount)
Y: on /cygdrive/y type vfat (binary,posix=3D0,user,noumount)


Thanks,
Dave


--
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/

- Raw text -


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