summaryrefslogtreecommitdiff
path: root/static/plan9-4e/man1/pwd.1
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/plan9-4e/man1/pwd.1
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/plan9-4e/man1/pwd.1')
-rw-r--r--static/plan9-4e/man1/pwd.146
1 files changed, 46 insertions, 0 deletions
diff --git a/static/plan9-4e/man1/pwd.1 b/static/plan9-4e/man1/pwd.1
new file mode 100644
index 00000000..78fedb19
--- /dev/null
+++ b/static/plan9-4e/man1/pwd.1
@@ -0,0 +1,46 @@
+.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.
+Since it uses
+.IR stat (2)
+to discover the name of
+.B \&.
+(dot),
+if the directory has been bound to another name, it will show
+the underlying name rather than that reported by
+.IR pwd .
+.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)
+