HP-UX Reference (11i v3 07/02) - 1 User Commands N-Z (vol 2)

s
sh-posix(1) sh-posix(1)
OLDPWD The previous working directory set by the
cd command.
OPTARG The value of the last option argument processed by the
getopts special command.
OPTERR If set to 0, OPTERR will suppress error messages from the
getopts special command.
OPTERR is initially set to 1.
OPTIND The index of the last option argument processed by the
getopts special command.
PPID The process number of the parent of the shell.
PWD The present working directory set by the
cd command.
RANDOM Each time this parameter is evaluated, a random integer, uniformly distributed between 0
and 32767, is generated. The sequence of random numbers can be initialized by assigning a
numeric value to RANDOM.
REPLY Set by the select compound command, and by the
read special command when no
name is supplied.
SECONDS Each time this parameter is referenced, the number of seconds since shell invocation is
returned. If this parameter is assigned a value, the value returned upon reference is the
value that was assigned plus the number of seconds since the assignment.
The following parameters are used by the shell:
CDPATH The search path for the cd command, a list of directories separated by colons.
COLUMNS If this variable is set, its value is used to define the width of the edit window for the shell
edit modes and for printing select lists.
EDITOR If the value of this variable ends in emacs, gmacs,orvi and the
VISUAL variable is not
set, the corresponding option is turned on (see the
set special command.
ENV If this parameter is set, parameter substitution is performed on the value to generate the
path name of the script to be executed when the shell is invoked (see the Invocation subsec-
tion). This file is typically used for
alias and function definitions.
By default, ENV script is executed for interactive shells only. Under the UNIX95 environ-
ment (see standards(5)), this file is executed for both interactive and non-interactive shells.
FCEDIT The default editor name for the fc command.
FPATH The search path for function definitions, a list of directories separated by colons. This path
is searched when a function with the -u attribute is referenced and when a command is not
found. If an executable file is found, then it is read and executed in the current environ-
ment.
HISTFILE If this parameter is set when the shell is invoked, its value is the path name of the file that
is used to store the command history. The default value is $HOME/.sh_history
.If
the user is a superuser and no
HISTFILE is given, then no history file is used. See the
Command Reentry subsection and the WARNINGS section.
HISTSIZE If this parameter is set when the shell is invoked, the number of previously entered com-
mands accessible to this shell will be greater than or equal to this number. The default is
128.
HOME The default argument (home directory) for the cd command.
IFS Internal field separators, normally space, tab, and newline, that are used to separate com-
mand words resulting from command or parameter substitution and for separating words
with the special command read. The first character of the IFS parameter is used to
separate arguments for the $* substitution (see the Quoting subsection). If the value of
IFS is space, tab, and newline, or if IFS is unset and it is being used to separate the
results of command or parameter substitution, any sequence of IFS characters serves to
delimit words; otherwise, each occurrence of a character in IFS serves to delimit a word.
If the value of IFS is null, no word splitting is done.
LANG The locale of your system, which is made up of three parts: language, territory, and code
set. The default is the C locale. See environ(5).
LC_ALL The overriding value for LANG and the LC_* variables. See environ(5).
256 Hewlett-Packard Company 14 HP-UX 11i Version 3: February 2007