Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Thu, 5 Apr 2001 14:08:28 -0400
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: Proposed Changes to mount
Message-ID: <20010405140828.A1484@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <000a01c0bdf3$832a1650$9531273f@ca.boeing.com> <20010405134001.A3662@redhat.com> <200104051756.NAA13702@envy.delorie.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <200104051756.NAA13702@envy.delorie.com>; from dj@delorie.com on Thu, Apr 05, 2001 at 01:56:25PM -0400

On Thu, Apr 05, 2001 at 01:56:25PM -0400, DJ Delorie wrote:
>
>> >   Each line would have at least one trailing space followed by a CRLF line
>> >ending to allow the output to work correctly as either a Cygwin shell script
>> >or a Win32 batch file.
>> 
>> I don't understand the need for a space.  There should be no reason for that.
>
>It was my suggestion, and needs a second patch to work right.  The
>reasoning is that mount can always create the file in text mode
>(CR/LF), so that it can always be used as a .bat file.  However, it
>can also be used as a shell script *if* the extra CR (which would
>otherwise be appended to the last argument) is isolated *and* if mount
>checks the last argument to see if it's a CR and strips it.

I still don't get it.  ash should open shell scripts in text mode so the
existence of the CR in the CRLF should be invisible.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

