
676
|
Chapter 6: The Bash Shell and Korn Shell
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
+count
Rotate the stack so that the count’th item from the left, as
shown by dirs, is the new top of the stack. Counting starts at
zero. The new top becomes the current directory.
-count
Rotate the stack so that the count’th item from the left, as
shown by dirs, is the new top of the stack. Counting starts at
zero. The new top becomes the current directory.
pwd
pwd [-LP]
Print your present working directory on standard output.
Options
Options give control over the use of logical versus physical treat-
ment of the printed path. See also the entry for cd, earlier in this
section.
-L Use logical path (what the user typed, including any symbolic
links) and the value of PWD for the current directory. This is
the default.
-P Use the actual filesystem physical path for the current
directory.
r
r
ksh88 alias for fc -e -. ksh93 alias for hist -s. Reexecute previous
command.
read
read [options] [variable1[?string]] [variable2 ...]
Read one line of standard input and assign each word to the corre-
sponding variable, with all leftover words assigned to the last
variable. If only one variable is specified, the entire line is assigned
to that variable. See the Examples here and under case. The return
status is 0 unless EOF is reached. Both Bash and the Korn shell
support ...