Mail Archives: djgpp/2001/02/21/05:25:29
On 21 Feb 2001, Esa A E Peuha wrote:
> "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> writes:
>
> > This particular problem is hard to fix because it is not in Bash. On
> > Unix, the first line of a script is examined by the system's kernel,
> > which decides what program should be invoked to run the script. The
> > confusing error message comes from the kernel which doesn't consider
> > \r a delimiter.
>
> That is true, but only if you run the script like "./sundry_script".
> The more primitive way, "bash sundry_script", doesn't involve the
> kernel, so it will work as long as Bash can parse the script.
Yes. But the usual rebuttal you will hear from Bash maintainers is that
since the simpler and more widely-used case is not up to Bash, it isn't
worth to fix the other one, either.
- Raw text -