⇤ ← Revision 1 as of 2017-10-21 17:46:39
568
Comment:
|
645
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
* [[../|Invocation Options]] | * [[bash/invocation/option|Invocation Options]] |
Line 6: | Line 7: |
Line 8: | Line 10: |
-c If the -c option is present, then commands are read from the first non-option argument command_string. If there are arguments after the command_string, the first argument is assigned to $0 and any remaining arguments are assigned to the positional parameters. The assignment to $0 sets the name of the shell, which is used in warning and error messages. |
[[../|-c]] [[bash/invocation/mode/CommandString|CommandString]] If the -c option is present, then commands are read from the first non-option argument command_string. If there are arguments after the command_string, the first argument is assigned to $0 and any remaining arguments are assigned to the positional parameters. The assignment to $0 sets the name of the shell, which is used in warning and error messages. |
Contents
1. Invocation Option C
If the -c option is present, then commands are read from the first non-option argument command_string. If there are arguments after the command_string, the first argument is assigned to $0 and any remaining arguments are assigned to the positional parameters. The assignment to $0 sets the name of the shell, which is used in warning and error messages.