[PATCH v3] environ.7: align PWD with the standard

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

 



Issue 7, 8.3:
    PWD
    This variable shall represent an absolute pathname of the current
    working directory. It shall not contain any components that are dot
    or dot-dot. The value is set by the cd utility, and by the sh
    utility during initialization.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@xxxxxxxxxxxxxxxxxx>
---
Amateurishly, I wrote that in in my MUA and forgot to re-add it for v2.
Fixed.

 man7/environ.7 | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/man7/environ.7 b/man7/environ.7
index 019c5a25a..24446c709 100644
--- a/man7/environ.7
+++ b/man7/environ.7
@@ -158,8 +158,12 @@ used by
 to find manual pages, and so on.
 .TP
 .B PWD
-The current working directory.
-Set by some shells.
+Absolute path to the current working directory;
+required to be partially canonical (no
+.I .\&
+or
+.I ..\&
+components).
 .TP
 .B SHELL
 The absolute pathname of the user's login shell.
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


[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