This is the mail archive of the
mailing list for the Cygwin project.
Re: Proposed Changes to mount
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.
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple