I'm using env
in a shell script like so:
#!/usr/bin/env bash
...
...
Mainly so my scripts are more portable. Anyway, i noticed that adding arguments to application that use env
doesn't always work...
#!/usr/bin/env bash -x
...
...
yield
/usr/bin/env: ‘bash -x’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines
I'm unsure on the correct formatting for the arguments. I checked the man page and i didn't see anything that would help either (afaik).