The shebang-line mechanism parses only the first space and passes the rest of the line as a single argument to the executable, so the record
looks like a challenge
$ /usr/bin/env "bash -x"
on the command line.
There is no executable file with a name "bash -x"(with a space in the command name), so this fails.
source
share