From: Andrew DeFaria <Andrew@DeFaria.com>
To: cygwin@cygwin.com
Subject: Re: Odd behavior of scripts in dos mode
Date: Thu, 26 Apr 2012 14:33:00 -0000 [thread overview]
Message-ID: <jnbmbj$4h5$1@dough.gmane.org> (raw)
In-Reply-To: <CA+sc5mmKxm=p+Tpu44GhXBfmCR_E2=LSMq3A7K_4Sgs1FRbDQg@mail.gmail.com>
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.
> http://cygwin.com/faq/#faq.api.cr-lf
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
bash\r.
--
<a href="http://defaria.com">Andrew DeFaria</a><br>
<small><font color="#999999">24 hours in a day...24 beers in a
case...coincidence?</font></small>
--
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
next prev parent reply other threads:[~2012-04-26 14:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-26 14:14 Andrew DeFaria
2012-04-26 14:26 ` Earnie Boyd
2012-04-26 14:33 ` Andrew DeFaria [this message]
2012-04-26 16:07 ` Buchbinder, Barry (NIH/NIAID) [E]
2012-04-26 14:41 ` Eric Blake
2012-04-26 17:22 ` Andrew DeFaria
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='jnbmbj$4h5$1@dough.gmane.org' \
--to=andrew@defaria.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).