bash [options] [command_string | file]
- -c If then -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 are assigned to the positional parameters. The assignment to $0 sets the name of the shell, which is used in warning and error messages
command_string 后面的都作为positional arguments
- -s If the -s option is present, of if no arguments remain after option processing, then commands are read from the standard input. This option allows the positional parameters to be set when invoking an interactive shell or when reading input through pipe
- -r --restricted If the -r option is present, the shell becomes restricted
How to Use Restricted Shell to Limit What a Linux User Can Do (howtogeek.com)