summaryrefslogtreecommitdiff
path: root/sys/man/1/pwd
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 16:49:47 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 16:49:47 +0300
commitb41b9034225ab3e49980d9de55c141011b6383b0 (patch)
tree891014b4c2e803e01ac7a1fd2b60819fbc5a6e73 /sys/man/1/pwd
parentc558a99e0be506a9abdf677f0ca4490644e05fc1 (diff)
Import sources from 2011-03-30 iso image - sys/man
Diffstat (limited to 'sys/man/1/pwd')
-rwxr-xr-xsys/man/1/pwd38
1 files changed, 38 insertions, 0 deletions
diff --git a/sys/man/1/pwd b/sys/man/1/pwd
new file mode 100755
index 000000000..f36e4fbf5
--- /dev/null
+++ b/sys/man/1/pwd
@@ -0,0 +1,38 @@
+.TH PWD 1
+.SH NAME
+pwd, pbd \- working directory
+.SH SYNOPSIS
+.B pwd
+.br
+.B pbd
+.SH DESCRIPTION
+.I Pwd
+prints the path name of the working (current) directory.
+.I Pwd
+is guaranteed to return the same path that was used to
+enter the directory.
+If, however, the name space has changed, or directory names
+have been changed, this path name may no longer be valid.
+(See
+.IR fd2path (2)
+for a description of
+.BR pwd 's
+mechanism.)
+.PP
+.I 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.
+.SH SOURCE
+.B /sys/src/cmd/pwd.c
+.br
+.B /sys/src/cmd/pbd.c
+.SH SEE ALSO
+.I cd
+in
+.IR rc (1),
+.IR bind (1),
+.IR intro (2),
+.IR getwd (2),
+.IR fd2path (2)
+