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.

pwd<br />

Localization<br />

Exit Values<br />

Portability<br />

Related Information<br />

set, sh<br />

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

v LANG<br />

v LC_ALL<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Inability to determine the working directory<br />

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

r — Process a command history list<br />

Format<br />

Description<br />

r [old=new] [specifier]<br />

Related Information<br />

fc, history, sh<br />

r is an alias for fc –s. Like fc –s, r reenters exactly one command without going<br />

through an editor. If a command specifier is given, r selects the command to<br />

reenter; otherwise, r uses the last command entered. To perform a simple<br />

substitution on the command before reentry, use a parameter of the form old=new.<br />

The string new replaces the first occurence of string old. r displays the (possibly<br />

modified) command before reentering it.<br />

See “fc — Process a command history list” on page 272 for more information.<br />

read — Read a line from standard input<br />

Format<br />

Description<br />

read [–prs] [–u[d]] [variable?prompt ] [variable ...]<br />

When you call read without options, it reads one line from the standard input,<br />

breaks the line into fields, and assigns the fields to each variable in order.<br />

To determine where to break the line into fields, read uses the built-in variable IFS<br />

(which stands for internal field separator). Encountering any of the characters in IFS<br />

means the end of one field and the beginning of the next. The default value of IFS<br />

is blank, tab, and newline.<br />

524 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!