Odd behavior of scripts in dos mode
Thu Apr 26 14:33:00 GMT 2012
On 04/26/2012 07:26 AM, Earnie Boyd wrote:
> On Thu, Apr 26, 2012 at 10:13 AM, Andrew DeFaria wrote:
>> I remember that Cygwin used to not be able to run scripts that were
>> converted or were in "DOS" mode - had trailing carriage returns in the file.
>> It would fail because the #! line might have /bin/bash\r which was not a
>> file (bash with a carriage return that is). But the behavior has changed.
>> Now it seems to ignore the trailing carriage return and it execs bash
>> itself. But it fails later on with other carriage returns.
That's an interesting read but it really does nothing to explain the
behavior I've observed. If it did then it would not be able to invoke
<a href="http://defaria.com">Andrew DeFaria</a><br>
<small><font color="#999999">24 hours in a day...24 beers in a
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin