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

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

 



Hi,

On Mon, Jun 20, 2022 at 2:40 AM наб <nabijaczleweli@xxxxxxxxxxxxxxxxxx> wrote:
>
> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@xxxxxxxxxxxxxxxxxx>
> ---
>  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).

If any shell decides to ignore that part of the spec, is there
anything preventing them? I would make it clear in the text that this
is a spec requirement, not a practical guarantee (e.g. "required by
<spec> to be ..."). Also, you removed the part saying "Set by some
shells", if you've tried some shells in use today and determined that
they all set PWD, it might be useful to specify that in the change
description, I think.

Thanks,
Stefan.

>  .TP
>  .B SHELL
>  The absolute pathname of the user's login shell.
> --
> 2.30.2




[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