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.

Options<br />

–l Output is expanded explicitly to home or the pathname of the home<br />

directory for the user.<br />

-n Entries are wrapped before they reach the edge of the screen.<br />

-p Overrides pushdsilent.<br />

-v Entries are printed one per line, preceded by their stack postions.<br />

If more than one of -n or -v is given, -v takes precedence.<br />

Related information<br />

tcsh<br />

pushd built-in command for tcsh: Make exchanges within directory<br />

stack<br />

Format<br />

pushd [-p] [-l] [-n|-v] [name| +n]<br />

Description<br />

pushd with options, exchanges the top two elements of the directory stack. If<br />

pushdtohome is set, pushd without arguments does pushd ~, like cd. With name,<br />

pushd pushes the current working directory onto the directory stack and changes to<br />

name. If name is ’-’, it is interpreted as the previous working directory (see<br />

“Filename substitution” on page 643). If dunique is set, pushd removes any<br />

instances of name from the stack before pushing it onto the stack. With a number<br />

+n, pushd rotates the n’th element of the directory stack around to be the top<br />

element and changes to it. If dextract is set, however, pushd +n extracts the n’th<br />

directory, pushes it onto the top of the stack and changes to it. So, instead of just<br />

rotating the entire stack around, dextract lets the user have the n’th directory<br />

extracted from its current position, and pushes it onto the top. For example:<br />

> pushd /tmp<br />

/tmp ~<br />

> pushd /bin<br />

/bin /tmp ~<br />

> pushd /u<br />

/u /bin /tmp ~<br />

> pushd /usr<br />

/usr /u /bin /tmp ~<br />

> pushd +2<br />

/bin /tmp ~ /usr /u<br />

> set dextract<br />

> dirs<br />

/bin /tmp ~ /usr /u<br />

> pushd +2<br />

~ /bin /tmp /usr /u<br />

><br />

Finally, all forms of pushd print the final directory stack, just like dirs. The<br />

pushdsilent tcsh shell variable can be set to prevent this.<br />

Options<br />

–l Output is expanded explicitly to home or the pathname of the home<br />

directory for the user.<br />

-n Entries are wrapped before they reach the edge of the screen.<br />

-p Overrides pushdsilent.<br />

tcsh: popd<br />

Chapter 2. Shell command descriptions 687

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

Saved successfully!

Ooh no, something went wrong!