
656
|
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.
break ;;
*) echo "$line" >> $message ;;
esac
done
caller
caller [expression]
Bash only. Print the line number and source file name of the
current function call or dot file. With nonzero expression, prints
that element from the call stack. The most recent is zero. This
command is for use by the Bash debugger.
cd
cd [-LP] [dir]
cd [-LP] [-]
cd [-LP] [old new]
With no arguments, change to home directory of user. Otherwise,
change working directory to dir.Ifdir is a relative pathname but is
not in the current directory, the CDPATH variable is searched. A
directory of - stands for the previous directory. The last syntax is
specific to the Korn shell. It modifies the current directory name by
replacing string old with new and then switches to the resulting
directory.
Options
-L Use the logical path (what the user typed, including any
symbolic links) for cd .. and the value of PWD. This is the
default.
-P Use the actual filesystem physical path for cd .. and the value
of PWD.
Example
$ pwd
/var/spool/cron
$ cd cron uucp Ksh: cd prints the new directory
/var/spool/uucp
command
command [-pvV] name [arg ...]
Not ksh88. Without -v or -V, execute name with given arguments.
This command bypasses any aliases or functions that may be
defined for name. When used with a special ...