Shell Startup

The following options can be specified only on the command line:

-c command-string the shell executes the command(s) contained in command-string
-i interactive mode - see below
-l login shell see below interactive mode
-s the shell reads commands from standard input; all non-option arguments are positional parameters
-r restricted mode - see below

In addition to the above, the options described in the set builtin command can also be used on the command line.

If neither the -c nor the -s options are specified, the first non-option argument specifies the name of a file the shell reads commands from; if there are no non-option arguments, the shell reads commands from standard input. The name of the shell (i.e., the contents of the ...

Get Korn Shell: Unix and Linux Programming Manual, Third Edition, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.