MPE/iX Shell and Utilities Reference Manual, Vol 2
pwd(1) MPE/iX Shell and Utilities pwd(1)
NAME
pwd — display working directory
SYNOPSIS
pwd
DESCRIPTION
pwd displays the absolute pathname of the current working directory to standard output.
If the current directory is a symbolic link to another directory, the pathname displayed
depends upon the setting of the shell’s logical flag; see set(1) for more information.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 pwd cannot determine the current working directory.
Message
Message: cannot allocate buffer for pathname: system error
Cause: See syserror(3).
Action: See syserror(3).
Message: cannot determine PATH_MAX: system error
Cause: See syserror(3).
Action: See syserror(3).
Message: cannot determine working directory: system error
Cause: See syserror(3).
Action: See syserror(3).
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0. All UNIX systems.
NOTE
pwd is both an alias built into the shell and a separate utility. The shell defines pwd as:
alias pwd=’print – $PWD’
When a symbolic link is used to get to a directory, the built-in alias may not return the real
name of the working directory.
Commands and Utilities 1-451