X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B7EC148.8050809@bopp.net>
Date: Fri, 19 Feb 2010 10:50:16 -0600
From: Jeremy Bopp <jeremy@bopp.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: File format problem after updatin to 1.7.1
References: <8CCC8F85C5F2784387A32FAD835FB4E602DA8EE5F9@server03> 	 <4B62F2EA.3040208@bopp.net> <416096c61001290707j3250273alcb439fdb8760e38a@mail.gmail.com> <4B62FB30.3000909@bopp.net> <loom.20100218T130418-858@post.gmane.org>
In-Reply-To: <loom.20100218T130418-858@post.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 2/18/2010 6:40 AM, Marta Ghidella wrote:
> Jeremy Bopp <jeremy <at> bopp.net> writes:
>>
>> I've not used that script before, but from that text it seems that the
>> script can only migrate user mounts, not system mounts.  I get the
>> impression that this problem is resulting from system mounts going binary.
>>
>> -Jeremy
>>
> 
> Hello Jeremy:
> 
> I've just updated to cygwin 1.7.1 and had the same problem  described here.
> But couldn't get the solution...
> 
> The key is in your paragraph, thet's very true.
> 
> But, how do we do if we want the system mounts to be text? 
> System mounts cannot be modified by mount; I tried adding them to fstab, but the
> operation is not allowed.

The only mount specification in /etc/fstab which appears to be ignored
is the one for /.  I can't say why that is so, and I don't know a way
around that fact.  I think Corinna manages that.

You have at least two possible workarounds available:

1) Set the SHELLOPTS environment variable to "igncr" so that Bash will
ignore the DOS line endings, or
2) Create a new text mode mount and then use your scripts from that new
mount.

Option 1 is only good for Bash, so if you have other programs which
choke on the DOS line endings, it's not going to work for you.  Option 2
may require a process change for you, but it should work as long as your
scripts live in the new mount and are referenced via that mount's path.

-Jeremy

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

