Differences between revisions 1 and 2
Revision 1 as of 2017-10-21 17:46:39
Size: 568
Comment:
Revision 2 as of 2017-10-21 18:16:35
Size: 645
Comment:
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.

1. Invocation Option C


-c 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.

bash/invocation/option/c (last edited 2017-10-21 19:02:45 by Robert Robertson)