Skip to content
Advertisement

Tag: env

Why does “/usr/bin/env bash -x” only work in command line?

I am playing with a docker CentOS image, and find executing “/usr/bin/env bash -x” command is OK in terminal: But after writing this command into a script and execute it, it doesn’t work, and prompts “No such file or directory”: Is there any difference between two methods? Answer The short answer is that you only get one parameter to the

Advertisement