9.0;wd (working_directory), revision 9.0, 85/04/22
WD (WORKING_DIRECTORY) -- Set or display the current working directory.
usage: WD [pathname]
FORMAT
WD [pathname]
WD sets the working directory for the current process to the specified
directory. The working directory is where the system looks for objects when
you don't explicitly specify a directory as a part of a pathname.
ARGUMENTS
pathname
(optional) Specify new working directory. This may be a derived name,
but must point to a directory or link to a directory.
Specifying a file will cause an error. WD also accepts the
command line parser arguments "-" and "*". If you specify
a hyphen (-), WD looks to standard input for the directory
name. An asterisk (*) followed by the name of a file
directs WD to look inside that file for the new working
directory name.
Default if omitted: display current working directory.
EXAMPLES
1. $ wd //fred/jtj Set new working directory.
$ wd Display the new setting.
//fred/jtj
$ wd stuff/revised Set working directory with derived name.
$ wd Display the new setting.
//fred/jtj/stuff/revised
2. $ wd - Direct input to standard input for new
//frodo/my_stuff directory name.
*** EOF *** Signal end of input with CTRL/Z.
$
3. $ wd *newdir Direct input to a file named "newdir"
$ that holds the name of the new working
directory.
RELATED TOPICS
More information is available. Type:
- HELP PATHNAME
for general information about pathnames.
- HELP CL
for information about the command line parser.