This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin-bash compat/regression bug... startup line prob


Eric Blake wrote:
On 04/28/2014 02:43 PM, Linda Walsh wrote:

>> cat bin/t.sh
> #!/bin/bash -u
Um... it doesn't work with 1 argument either.

This is an invalid shebang line.  Historically, you are allowed at most
ONE argument to the program that you will be executing.
?!? Historically?.. since when? Never encountered that problem on linux
nor on cygwin.  This isn't a case of 2 args, just the "-u" by itself
doesn't work.

> Also weird -- the interp line says "/bin/bash" not "/usr/bin/bash"
> as the shell, so why does the error come from /usr/bin/bash?

the answer to this question.
---
???
This isn't clear to me.  If I am running /bin/bash, why did the error message
say /usr/bin/bash?




--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]