Debian Bug report logs - #866060
environ(7): please document the valid values of pathnames for SHELL, PAGER and EDITOR/VISUAL

version graph

Package: manpages; Maintainer for manpages is Dr. Tobias Quathamer <toddy@debian.org>; Source for manpages is src:manpages (PTS, buildd, popcon).

Affects: sensible-utils

Reported by: Vincent Lefevre <vincent@vinc17.net>

Date: Tue, 27 Jun 2017 02:03:02 UTC

Severity: wishlist

Tags: fixed-upstream, upstream

Merged with 656657

Found in versions manpages/3.35-0.1, manpages/5.10-1, manpages/4.11-1

Fixed in version manpages/5.13-1

Done: roucaries.bastien@gmail.com

Bug is archived. No further changes may be made.

Forwarded to https://bugzilla.kernel.org/show_bug.cgi?id=196513

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Martin Schulze <joey@debian.org>:
Bug#866060; Package manpages. (Tue, 27 Jun 2017 02:03:05 GMT) (full text, mbox, link).


Acknowledgement sent to Vincent Lefevre <vincent@vinc17.net>:
New Bug report received and forwarded. Copy sent to Martin Schulze <joey@debian.org>. (Tue, 27 Jun 2017 02:03:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vincent Lefevre <vincent@vinc17.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: environ(7): please document the valid values of pathnames for SHELL, PAGER and EDITOR/VISUAL
Date: Tue, 27 Jun 2017 04:01:44 +0200
Package: manpages
Version: 4.11-1
Severity: wishlist

The environ(7) man page says:

       SHELL  The pathname of the user's login shell.

       PAGER  The user's preferred utility to display text files.

       EDITOR/VISUAL
              The user's preferred utility to edit text files.

but doesn't say whether the pathnames must be absolute or they can
be resolved using $PATH, or whether they can have options.

Note that at least for SHELL, this is not specified by POSIX. I've
raised the issue in the Austin Group mailing-list, and the answer I
got until now is that "what constitutes a valid value for a platform
should be documented".

Since OpenSSH assumes that $SHELL is an absolute pathname (when set),
I suppose that the documentation should be:

       SHELL  The absolute pathname of the user's login shell.

For PAGER, POSIX says: "Any string acceptable as a command_string
operand to the sh -c command shall be valid."

For EDITOR, it does not need to be an absolute pathname since POSIX
gives the example:

  EDITOR=vi fc

and since it is specified as "the name of a utility", I assume that
arguments (options) must not be provided. Page 3013 about "more", it
is said: "If the last pathname component in EDITOR is either vi or ex,
[...]", thus again, it is assumed to be a pathname.

For VISUAL, POSIX says: "Determine a pathname of a utility to invoke
when the visual command [...]", thus it is also a pathname. It is not
clear whether the pathname must be absolute, but for consistency with
EDITOR, I assume that it will be resolved using $PATH.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

manpages depends on no packages.

manpages recommends no packages.

Versions of packages manpages suggests:
ii  man-db [man-browser]  2.7.6.1-2

-- no debconf information



Added tag(s) upstream. Request was from Vincent Lefevre <vincent@vinc17.net> to control@bugs.debian.org. (Fri, 28 Jul 2017 07:12:04 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'https://bugzilla.kernel.org/show_bug.cgi?id=196513'. Request was from Vincent Lefevre <vincent@vinc17.net> to control@bugs.debian.org. (Fri, 28 Jul 2017 07:12:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Dr. Tobias Quathamer <toddy@debian.org>:
Bug#866060; Package manpages. (Wed, 13 Jan 2021 10:15:03 GMT) (full text, mbox, link).


Acknowledgement sent to Bastien Roucariès <roucaries.bastien@gmail.com>:
Extra info received and forwarded to list. Copy sent to Dr. Tobias Quathamer <toddy@debian.org>. (Wed, 13 Jan 2021 10:15:03 GMT) (full text, mbox, link).


Message #14 received at 866060@bugs.debian.org (full text, mbox, reply):

From: Bastien Roucariès <roucaries.bastien@gmail.com>
To: Debian Bug Tracking System <866060@bugs.debian.org>
Subject: Re: environ(7): please document the valid values of pathnames for SHELL, PAGER and EDITOR/VISUAL
Date: Wed, 13 Jan 2021 10:10:41 +0000
[Message part 1 (text/plain, inline)]
Package: manpages
Version: 5.10-1
Followup-For: Bug #866060

Dear Maintainer,

Please found the included patch

Please apply
[0001-Document-the-valid-values-of-pathnames-for-SHELL-PAG.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Dr. Tobias Quathamer <toddy@debian.org>:
Bug#866060; Package manpages. (Wed, 20 Jan 2021 09:09:02 GMT) (full text, mbox, link).


Acknowledgement sent to mtk.manpages@gmail.com:
Extra info received and forwarded to list. Copy sent to Dr. Tobias Quathamer <toddy@debian.org>. (Wed, 20 Jan 2021 09:09:02 GMT) (full text, mbox, link).


Message #19 received at 866060@bugs.debian.org (full text, mbox, reply):

From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Bastien Roucariès <roucaries.bastien@gmail.com>, 866060@bugs.debian.org, control@bugs.debian.org
Subject: Re: Bug#866060: environ(7): please document the valid values of pathnames for SHELL, PAGER and EDITOR/VISUAL
Date: Wed, 20 Jan 2021 10:04:04 +0100
tags 866060 fixed-upstream
thanks

This patch has been applied upstream.

Cheers,

Michael


On Wed, 13 Jan 2021 at 11:15, Bastien Roucariès
<roucaries.bastien@gmail.com> wrote:
>
> Package: manpages
> Version: 5.10-1
> Followup-For: Bug #866060
>
> Dear Maintainer,
>
> Please found the included patch
>
> Please apply



--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



Added tag(s) fixed-upstream. Request was from "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com> to control@bugs.debian.org. (Wed, 20 Jan 2021 09:09:04 GMT) (full text, mbox, link).


Marked as found in versions manpages/3.35-0.1. Request was from roucaries.bastien@gmail.com to control@bugs.debian.org. (Sat, 23 Jan 2021 08:09:02 GMT) (full text, mbox, link).


Merged 656657 866060 Request was from roucaries.bastien@gmail.com to control@bugs.debian.org. (Sat, 23 Jan 2021 08:09:04 GMT) (full text, mbox, link).


Added indication that bug 866060 blocks 960734 Request was from roucaries.bastien@gmail.com to control@bugs.debian.org. (Sat, 23 Jan 2021 08:09:07 GMT) (full text, mbox, link).


Added indication that 866060 affects sensible-utils Request was from roucaries.bastien@gmail.com to control@bugs.debian.org. (Sat, 23 Jan 2021 08:09:09 GMT) (full text, mbox, link).


Marked as fixed in versions manpages/5.13-1. Request was from roucaries.bastien@gmail.com to control@bugs.debian.org. (Mon, 15 Aug 2022 21:45:05 GMT) (full text, mbox, link).


Marked Bug as done Request was from roucaries.bastien@gmail.com to control@bugs.debian.org. (Mon, 15 Aug 2022 21:45:06 GMT) (full text, mbox, link).


Notification sent to Vincent Lefevre <vincent@vinc17.net>:
Bug acknowledged by developer. (Mon, 15 Aug 2022 21:45:06 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 13 Sep 2022 07:28:26 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Mar 25 18:34:20 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.