Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Thu, 5 Apr 2001 14:08:28 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Proposed Changes to mount Message-ID: <20010405140828.A1484@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <000a01c0bdf3$832a1650$9531273f AT ca DOT boeing DOT com> <20010405134001 DOT A3662 AT redhat DOT com> <200104051756 DOT NAA13702 AT envy DOT delorie DOT 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