1
While running a bash script, I get this error:
sh: [[: not found
How can I find what where is the problem?
1
While running a bash script, I get this error:
sh: [[: not found
How can I find what where is the problem?
6
[[
is a bash
command that is not compatible with sh
. Run the script with bash
instead:
$ bash ./script.sh
Or edit the shebang:
#!/usr/bin/env bash
then:
$ ./script.sh
1Or put
#!/usr/bin/env bash
at the top of your script. – Dean – 2013-11-04T21:20:19.427