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


Groups > linux.debian.user > #261898

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

From Tom Browder <tom.browder@gmail.com>
Newsgroups linux.debian.user
Subject Re: PATH revisited: one PATH to "rule the [Debian] World"
Date 2023-09-25 16:00 +0200
Message-ID <HhUhX-bscO-9@gated-at.bofh.it> (permalink)
References (1 earlier) <HhEPT-biLQ-5@gated-at.bofh.it> <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>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Mon, Sep 25, 2023 at 06:08 Tom Browder <tom.browder@gmail.com> wrote:

> On Sun, Sep 24, 2023 at 17:23 Tom Browder <tom.browder@gmail.com> wrote:
>
>> On Sun, Sep 24, 2023 at 17:04 Greg Wooledge <greg@wooledge.org> wrote:
>>
>>> On Sun, Sep 24, 2023 at 04:45:11PM -0500, Tom Browder wrote:
>>> > I'm sure I was too casual in my comments. I want all users, including
>>> root,
>>> > to have the Raku executables in their PATH, nothing else would be
>>> changed
>>> > from current use
>>
>> ...
>
>> Ah, good old X-Y.
>>
>> Create symlinks from /usr/local/bin/ to wherever the programs are
>>> physically installed.  Then don't touch PATH at all.
>>
>> My brain isn't clicking on all eight, but I think you suggested that
>> before--I'll try that, thanks, Greg!
>>
>
Well, that's not going to work. 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.

I think I need to have the program change all the path-affecting files
specified by Greg and others so that PATH includes both locations with the
new location coming before the original location.

Then the script can safely remove the original version.

-Tom

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