Re: Default PATH setting - reduce to something more sensible?

Liste des GroupesRevenir à cu programmer 
Sujet : Re: Default PATH setting - reduce to something more sensible?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.programmer
Date : 19. Jan 2025, 14:10:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vmitkt$282bg$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 16.01.2025 12:51, Rainer Weikusat wrote:
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>
Essentially there were two questions I had that I can reformulate in a
more compact form as
>
  "Why, in the first place, are all these path components
   part of the default PATH for ordinary users? - Is there
   any [functional] rationale or necessity for that?"
 
Because someone thinks that all these locations should be searched for
commands in the order specified. Eg, the point of the lightdm entry is
very likely to enable lightdm to 'override' arbitrary user commands by
making sure that the shell will find lightdm-commands of the same name
first.

That's a thought that I had as well. But upon reconsideration I thought
that it wouldn't be necessary to _export_ that path component into the
user environment.

 
OTOH, that's pretty much a truism.
 
>
  "_If_ many of the default PATH components are unnecessary,
   where and how to best reduce these settings to a sensible
   subset? - Without spoiling the system, of course."
 
As already written above: They are part of PATH because someone thinks
that's sensible. Whether or not they're necessary in a certain situation
is an entirely different question. If you want to work out empirically
what's "necessary" for you, remove them all and add directories to the
default PATH one-by-one as the need arises.

Well, I have a clear idea what I need and what is necessary. Since I
cannot remove that 'lightdm' thing I may just define the PATH anew in
my (shell-)environment.

 
OTOH, what's the point? My flat contains more light switches than I
actually need, with some of them being (as far as I could determine)
entirely blind/ connected to lamps I don't use and some of them being
redundant because they switch lamps on or off which can also be switched
on or off with another light switch. But as they're just sitting on the
wall and removing them would require work, I haven't even considered
doing so.

That are different things. The switches are put in advance at places
that are reasonable. And you wouldn't put a switch below the WC, I'm
sure (read: "WC" ~ 'lightdm').

Janis


Date Sujet#  Auteur
14 Jan 25 * Default PATH setting - reduce to something more sensible?17Janis Papanagnou
14 Jan 25 +- Re: Default PATH setting - reduce to something more sensible?1Dan Cross
14 Jan 25 `* Re: Default PATH setting - reduce to something more sensible?15Rainer Weikusat
14 Jan 25  +- Re: Default PATH setting - reduce to something more sensible?1Kaz Kylheku
14 Jan 25  `* Re: Default PATH setting - reduce to something more sensible?13Rainer Weikusat
15 Jan 25   +- Re: Default PATH setting - reduce to something more sensible?1Dan Cross
15 Jan 25   `* Re: Default PATH setting - reduce to something more sensible?11Rainer Weikusat
15 Jan 25    `* Re: Default PATH setting - reduce to something more sensible?10Rainer Weikusat
16 Jan 25     `* Re: Default PATH setting - reduce to something more sensible?9Janis Papanagnou
16 Jan 25      +- Re: Default PATH setting - reduce to something more sensible?1Dan Cross
16 Jan 25      +* Re: Default PATH setting - reduce to something more sensible?4Rainer Weikusat
19 Jan 25      i`* Re: Default PATH setting - reduce to something more sensible?3Janis Papanagnou
19 Jan 25      i `* Re: Default PATH setting - reduce to something more sensible?2Rainer Weikusat
20 Jan 25      i  `- Re: Default PATH setting - reduce to something more sensible?1Keith Thompson
16 Jan 25      +* Re: Default PATH setting - reduce to something more sensible?2Waldek Hebisch
16 Jan 25      i`- Re: Default PATH setting - reduce to something more sensible?1Rainer Weikusat
19 Jan 25      `- Re: Default PATH setting - reduce to something more sensible?1Janis Papanagnou

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal