
686
|
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.
nocaseglob
Ignore letter case when doing filename matching.
nullglob
Expand patterns that do not match any files to the null string,
instead of using the literal pattern as an argument.
progcomp †
Enable programmable completion.
promptvars †
Perform variable, command, and arithmetic substitution on
the values of PS1, PS2 and PS4.
restricted_shell
Set by the shell when it is a restricted shell. This is a read-only
option.
shift_verbose
Causes shift to print an error message when the shift count is
greater than the number of positional parameters.
sourcepath †
Causes the
. (dot) and source commands to search $PATH in
order to find the file to read and execute.
xpg_echo
Causes echo to expand escape sequences, even without the -e
or -E options.
shift
shift [n]
Shift positional arguments (e.g., $2 becomes $1). If n is given, shift
to the left n places. Used in while loops to iterate through
command-line arguments. In the Korn shell, n can be an integer
expression.
Examples
shift $1+$6 Korn shell: use expression result as shift count
shift $(($1 + $6)) Same, portable to any POSIX shell
sleep
sleep [n]
ksh93 only. Sleep for n seconds. n can have a fractional part.
source
source file [arguments]
Bash only. Identical to the . (dot) command; see that entry.
stop
stop [jobIDs ...