Paul Jarc wrote:
mwoehlke <[EMAIL PROTECTED]> wrote:
And since when does '#! /bin/bash' mean "use whatever 'bash' you
find in $PATH"? Silly me, I thought it meant "use '/bin/bash'".
Dave did say "hash-bang", but he didn't say "#! /bin/bash". Possibly
he's thinking of "#!/usr/bin/env bash", which should do what you want.
Ah! See, I've never seen that trick. :-)
Thanks. Although it still relies on /usr/bin/env, which is *more* likely
to be there than any permutation of bash, but I'd still be a little
paranoid counting on it, at least until I've verified it. :-)
Actually, I must admit there is a laziness aspect; to shebang, I would
have to change about a dozen scripts, whereas the current test is in one
file that all others source. :-)
--
Matthew
Will your shell have salvation? Only if it's Bourne Again.
_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash