]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
proc.5: Use "pwd -P" for printing cwd
authorJakub Wilk <jwilk@jwilk.net>
Mon, 20 Jul 2020 06:12:00 +0000 (08:12 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 20 Jul 2020 09:35:07 +0000 (11:35 +0200)
"/bin/pwd" happens to work with the GNU coreutils implementation,
which has -P as the default, contrary to POSIX requirements.

Use "pwd -P" instead, which is shorter, easier to type, and should
work everywhere.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man5/proc.5

index 4cffd97180e28a25babb73a6db2b60e3184de59a..edf81bc581d96c8a5b4dad27c3944623719cc2c4 100644 (file)
@@ -588,19 +588,10 @@ for instance, you can do this:
 .IP
 .in +4n
 .EX
-.RB "$" " cd /proc/20/cwd; /bin/pwd"
+.RB "$" " cd /proc/20/cwd; pwd \-P"
 .EE
 .in
 .IP
-Note that the
-.I pwd
-command is often a shell built-in, and might
-not work properly.
-In
-.BR bash (1),
-you may use
-.IR "pwd\ \-P" .
-.IP
 .\" The following was still true as at kernel 2.6.13
 In a multithreaded process, the contents of this symbolic link
 are not available if the main thread has already terminated