-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SC2279
Joachim Ansorg edited this page Nov 12, 2021
·
2 revisions
#!/bin/dash
$0=myname$0 can not be changed in Dash.
You appear to be trying to assign a new value to $0 in Dash.
Dash does not support this. Write around it, or switch to Bash.
If you instead wanted to compare the value of $0, use a comparison like [ "$0" = "myname" ].
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!