Section 7.14. Command-Line Options


[Page 293]

7.14. Command-Line Options

If the first command-line argument is a -, the Korn shell is started as a login shell. In addition to this, the Korn shell supports the flags of the built-in set command (including -x and -v) and those listed in Figure 7-45.

Figure 7-45. Korn shell command-line options.

Option

Meaning

-c string

Create a shell to execute the command string.

-s

Create a shell that reads commands from standard input and sends shell messages to the standard error channel.

-i

Create an interactive shell; like the -s option except that the SIGTERM, SIGINT, and SIGQUIT signals are all ignored. For information about signals, consult Chapter 12, "Systems Programming."

fileName

Execute the shell commands in fileName if the -s option is not used. fileName is $0 within the fileName script.





Linux for Programmers and Users
Linux for Programmers and Users
ISBN: 0131857487
EAN: 2147483647
Year: 2007
Pages: 339

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net