PWD(1)PWD(1)NAME
pwd, pbd - working directory
SYNOPSIS
pwd
pbd
DESCRIPTION
Pwd prints the path name of the working (current) directory. Pwd is
guaranteed to return the same path that was used to enter the direcā
tory. If, however, the name space has changed, or directory names have
been changed, this path name may no longer be valid. (See fd2path(2)
for a description of pwd's mechanism.)
Pbd prints the base name of the working (current) directory. It prints
no final newline and is intended for applications such as constructing
shell prompts.
SOURCE
/sys/src/cmd/pwd.c
/sys/src/cmd/pbd.c
SEE ALSO
cd in rc(1), bind(1), intro(2), getwd(2), fd2path(2)PWD(1)