
626
|
Chapter 6: The Bash Shell and Korn Shell
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
--dump-strings
Same as -D.
--help
Print a usage message and exit successfully.
--init-file file
--rcfile file
Use file as the startup file instead of ~/.bashrc for interactive shells.
--login
Shell is a login shell.
--noediting
Do not use the readline library for input, even in an interactive shell.
--noprofile
Do not read /etc/profile or any of the personal startup files.
--norc
Do not read ~/.bashrc. Enabled automatically when invoked as sh.
--posix
Turn on POSIX mode.
--restricted
Same as -r.
--verbose
Same as set -v; the shell prints lines as it reads them.
--version
Print a version message and exit.
The remaining options to Bash and ksh are listed under the set built-in command.
Arguments
Arguments are assigned in order to the positional parameters $1, $2, etc. If the
first argument is an executable script, commands are read from it, and the
remaining arguments are assigned to $1, $2, etc. The name of the script is avail-
able as $0.
Syntax
This section describes the many symbols peculiar to the Bash and Korn shells. The
topics are arranged as follows:
• Special files
• Filename metacharacters
• Quoting
• Command forms
• Redirection forms
• Coprocesses (Korn shell only)