[OT] #!/usr/bin/env bash -vx
Mumit Khan
khan@NanoTech.Wisc.EDU
Wed Jan 31 09:18:00 GMT 2001
On Wed, 31 Jan 2001, Josifovski Ljubomir-BLJ01Z wrote:
>
> This is not exclusive to cygwin, but maybe someone here can help me. I put
>
> #!/usr/bin/env bash
>
> in the first line on some scripts I use on Cygwin, Linux and HP-UX because
> the exact path to bash differs (someone posted this trick on the list
> sometime ago). But when arguments are added to the line, like
>
> #!/usr/bin/env bash -vx
>
> this doesn't work anymore - I get:
It's the way env works, especially in conjunction with '#!'. If you
really want to do this, create a wrapper script, where you can define
all the flags. In this example, the interpreter Cygwin or Linux or any
other OS will call up is "bash -vx", which is it not a valid interpreter
name ("bash" by itself is of course).
Regards,
Mumit
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list