Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #261906

Re: PATH revisited: one PATH to "rule the [Debian] World"

From Andy Smith <andy@strugglers.net>
Newsgroups linux.debian.user
Subject Re: PATH revisited: one PATH to "rule the [Debian] World"
Date 2023-09-25 18:20 +0200
Message-ID <HhWtr-btGn-3@gated-at.bofh.it> (permalink)
References (2 earlier) <HhF9f-biSd-9@gated-at.bofh.it> <HhFsB-bjeM-1@gated-at.bofh.it> <HhFLX-bjl7-7@gated-at.bofh.it> <HhRDr-bqOD-9@gated-at.bofh.it> <HhUhX-bscO-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

On Mon, Sep 25, 2023 at 08:50:52AM -0500, Tom Browder wrote:
> I failed to say my program is a bit more
> complicated:
> 
> 0. It's executed by 'root'.
> 1. It uses 'raku'.
> 2. During its operation, the location of the 'raku' version to be used
> after it completes changes from '/usr/local/bin' to '/opt/rakudo-pkg/bin'.
> 3. Due to requirement 2, I don't think it's safe to attempt to overwrite
> current executables with a symlink to new executables of the same basename.

If you have a program that REQUIRES to call raku at
/usr/local/bin/raku by invoking "raku" with no path and then
REQUIRES to call raku at /opt/rakudo-pkg/bin/raku by calling "raku"
with no path, then I think that is an insane set of requirements up
with which I would not put.

I'd make it all run with one raku from one place, or else I'd
specify the full path to the special raku that is needed.

Anything else sounds like a great foot-gun left lying around for
others or myself a week from now.

Perl and Python virtual environments typically have a script which
sets the path to the interpreter once you enter them, and then
everything is self-contained from there.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-09-24 16:30 +0200
  Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-09-24 16:50 +0200
    Re: PATH revisited: one PATH to "rule the [Debian] World" Nicolas George <george@nsup.org> - 2023-09-24 20:40 +0200
    Re: PATH revisited: one PATH to "rule the [Debian] World" Michel Verdier <mv524@free.fr> - 2023-09-24 20:40 +0200
  Re: PATH revisited: one PATH to "rule the [Debian] World" Greg Wooledge <greg@wooledge.org> - 2023-09-24 19:30 +0200
  Re: PATH revisited: one PATH to "rule the [Debian] World" debian-user@howorth.org.uk - 2023-09-24 23:30 +0200
    Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-09-24 23:50 +0200
      Re: PATH revisited: one PATH to "rule the [Debian] World" Greg Wooledge <greg@wooledge.org> - 2023-09-25 00:10 +0200
        Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-09-25 00:30 +0200
          Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-09-25 13:10 +0200
            Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-09-25 16:00 +0200
              Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-09-25 16:50 +0200
                Re: PATH revisited: one PATH to "rule the [Debian] World" Greg Wooledge <greg@wooledge.org> - 2023-09-25 17:10 +0200
                Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-09-26 22:40 +0200
                Re: PATH revisited: one PATH to "rule the [Debian] World" Greg Wooledge <greg@wooledge.org> - 2023-09-26 23:10 +0200
              Re: PATH revisited: one PATH to "rule the [Debian] World" Andy Smith <andy@strugglers.net> - 2023-09-25 18:20 +0200
                Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-09-26 16:10 +0200
                Re: PATH revisited: one PATH to "rule the [Debian] World" Andy Smith <andy@strugglers.net> - 2023-09-26 16:30 +0200
                Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-09-27 01:20 +0200
                Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-09-27 01:40 +0200
                Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-09-27 03:20 +0200
        Re: PATH revisited: one PATH to "rule the [Debian] World" Jeffrey Walton <noloader@gmail.com> - 2023-09-25 17:30 +0200
  Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-10-27 17:00 +0200
    Re: PATH revisited: one PATH to "rule the [Debian] World" Felix Miata <mrmazda@earthlink.net> - 2023-10-27 19:00 +0200
      Re: PATH revisited: one PATH to "rule the [Debian] World" <tomas@tuxteam.de> - 2023-10-27 19:00 +0200
        Re: PATH revisited: one PATH to "rule the [Debian] World" Stefan Monnier <monnier@iro.umontreal.ca> - 2023-10-27 20:50 +0200
          Re: PATH revisited: one PATH to "rule the [Debian] World" Greg Wooledge <greg@wooledge.org> - 2023-10-27 21:00 +0200
            Re: PATH revisited: one PATH to "rule the [Debian] World" Michael Kjörling <2695bd53d63c@ewoof.net> - 2023-10-27 23:00 +0200
            Re: PATH revisited: one PATH to "rule the [Debian] World" <tomas@tuxteam.de> - 2023-10-28 06:40 +0200
              Re: PATH revisited: one PATH to "rule the [Debian] World" Felix Miata <mrmazda@earthlink.net> - 2023-10-28 07:10 +0200
          Re: PATH revisited: one PATH to "rule the [Debian] World" <tomas@tuxteam.de> - 2023-10-28 06:30 +0200
            Re: PATH revisited: one PATH to "rule the [Debian] World" David Wright <deblis@lionunicorn.co.uk> - 2023-10-29 15:30 +0100
  Re: PATH revisited: one PATH to "rule the [Debian] World" Tom Browder <tom.browder@gmail.com> - 2023-11-02 22:40 +0100
    Re: PATH revisited: one PATH to "rule the [Debian] World" <tomas@tuxteam.de> - 2023-11-03 06:50 +0100

csiph-web