Text-only Table of Contents (frame/ no frame)
(12) Shell options Previous Top Next

Shell options

Startup options. ksh -options scriptname
-x
echo line to stderr before executing it
-n
read commands and check for syntax errors, but do not execute.
-a
all variables are automatically exported
-f
disable wildcard filename expansion (globbing)
set -x
Set an option within a shell script
$-
contains the currently set option letters
There are many other options, not often needed. Options in ksh and bash can also be set using long names (e.g. -o noglob instead of -f). Many options are unique to ksh or bash.

Previous Top Next


command_line_opts.src  last modified Mar 11, 2005 Introduction Table of Contents
(frame/no frame)
Printable
(single file)
© Dartmouth College