MPE/iX Shell and Utilities Reference Manual, Vol 1

cd(1) MPE/iX Shell and Utilities cd(1)
If either directory is a symbolic link to another directory, the behavior depends upon the set-
ting of the shell’s –o logical flag. See set(1) for more information.
ENVIRONMENT VARIABLES
CDPATH
contains a list of directories for cd to search under when directory is a relative path
name.
HOME
contains the name of your home directory. This is used when you do not specify
directory on the command line.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure due to any of the following:
—no
HOME
directory
— no previous directory
— a search for directory failed
—anold/new substitution failed
2 An invalid command line option.
Messages
Message: "dir" bad directory: system error
Cause: See syserror(3).
Action: See syserror(3).
Message: cd: restricted
Cause: You were using the restricted version of the shell (for example, by specifying
the –r option for sh). The restricted shell does not allow the cd command.
Action: To use the cd command, you must be using a non-restricted shell.
Message: no HOME directory
Cause: You attempted to use cd to return to your home directory; however, the envi-
ronment variable
HOME
was not defined.
Action: Set the environment variable
HOME
to the path name of your home directory.
Message: no previous directory
Cause: You tried the command cd to return to your previous directory; however,
there was no record of what your previous directory was.
Action: Make sure that you only use cd when there is a previous directory.
1-84 Commands and Utilities