Bash Manual says about bash -c <some-command>
:
Read and execute commands from the first non-option argument after processing the options, then exit. Any remaining arguments are assigned to the positional parameters, starting with $0.
What do the following mean:
- "the first non-option argument after processing the options"
- "Any remaining arguments are assigned to the
positional parameters, starting with
$0
"
In the second one, are the positional parameters for bash
or for some-command
?