[PATCH] proc.5: use "pwd -P" for printing cwd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"/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@xxxxxxxxx>
---
 man5/proc.5 | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/man5/proc.5 b/man5/proc.5
index 0dbc05228..55f425dcd 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -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
-- 
2.28.0.rc1




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux