public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] environ.7: align PWD with the standard
@ 2022-06-19 19:57 наб
  2022-06-19 23:06 ` Alejandro Colomar
  0 siblings, 1 reply; 9+ messages in thread
From: наб @ 2022-06-19 19:57 UTC (permalink / raw)
  To: Alejandro Colomar (man-pages); +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 979 bytes --]

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@nabijaczleweli.xyz>
---
There's likely a lot more in this page that is either a straight-up lie
or an unfortunate omission

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

diff --git a/man7/environ.7 b/man7/environ.7
index 019c5a25a..65f1d8da8 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.
+Partially canonical (no
+.I .
+or
+.I ..
+components).
 .TP
 .B SHELL
 The absolute pathname of the user's login shell.
-- 
2.30.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-07-03 18:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-19 19:57 [PATCH] environ.7: align PWD with the standard наб
2022-06-19 23:06 ` Alejandro Colomar
2022-06-19 23:39   ` [PATCH v2] " наб
2022-06-20  7:12     ` Alejandro Colomar
2022-06-20  8:55     ` Stefan Puiu
2022-06-20 15:23       ` наб
2022-06-21 21:35         ` Stefan Puiu
2022-07-03 18:08           ` Alejandro Colomar
2022-06-20 15:25     ` [PATCH v3] " наб

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox