BASH_ARGV0
$0
[ ]
#!/bin/bash $0=myscriptname
#!/bin/bash BASH_ARGV0=myscriptname
You appear to be trying to assign a new value to $0 in a Bash script. To do this, instead assign to the special variable BASH_ARGV0.
If you instead wanted to compare the value of $0, use a comparison like [ "$0" = "myname" ].
[ "$0" = "myname" ]
None.
There was an error while loading. Please reload this page.