16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Localization<br />

Usage Note<br />

Exit Values<br />

Messages<br />

Portability<br />

cd uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F, “Localization” for more information.<br />

cd is a built-in shell command.<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v No HOME directory<br />

v No previous directory<br />

v A search for directory failed<br />

v An old-to-new substitution failed<br />

2 An incorrect command-line option<br />

Possible error messages include:<br />

dir bad directory<br />

cd could not locate the target directory. This does not change the working<br />

directory.<br />

Restricted<br />

You are using the restricted version of the shell (for example, by specifying<br />

the –r option for sh). The restricted shell does not allow the cd command.<br />

No HOME directory<br />

You have not assigned a value to the HOME environment variable. Thus,<br />

when you run cd in order to return to your home directory, cd cannot<br />

determine what your home directory is.<br />

No previous directory<br />

You tried the command cd – to return to your previous directory; but there<br />

is no record of your previous directory.<br />

Pattern old not found in dir<br />

You tried a command of the form cd old new. However, the name of the<br />

working directory dir does not contain any string matching the regular<br />

expression old.<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide.<br />

All <strong>UNIX</strong> systems feature the first form of the command.<br />

The cd old new form of the command is an extension of the P<strong>OS</strong>IX standard.<br />

cd<br />

Chapter 2. Shell command descriptions 113

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!