On Mon, Aug 21, 2023 at 08:11 Greg Wooledge <g...@wooledge.org> wrote:

> On Mon, Aug 21, 2023 at 07:56:22AM -0500, Tom Browder wrote:
> > For Greg: I'm trying to get my muscle memory to use "sudo -i" and "sudo
> -s"
> > as you said to become root user for more work (thanks for the great
> > explanation).
> >
> > One more question: when I need a one-liner as root, do I also use the
> '-i'
> > or '-s' with sudo to get the desired path?
>
> No.  sudo sets the PATH for you.  You only need -i or -s when you want
> to get an interactive shell, instead of running a specific command.


Thanks. When I get a multi-user system working with Raku as I want it to,
I'll post it on this thread for your critique. On the original thread you
kept wanting me to describe in detail my use case. The problem was (and
still is) how to handle the following requirements:

1. Have root install the Raku executable for all users

2. Have the root user install modules for himself, but have normal users
see and use them in their normal path.

3. Allow normal users to install their own modules which, for them only,
would override the global version.

This is somewhat analogous to Perl, but zef, the equivalebt Raku installer,
is a bit pickier than cpanm about overrides.

Best regards,

-Tom

P.S. Note Debian does have a Raku package, but most real users would rather
use the latest and greatest. The language is under heavy development and
there are real advantages for power users to stay current (a new version is
normally release monthly). There is a painless Debian package system
provided by our community similar to those provided by the PostgreSQL
community.

Do not think the syntax or user-space is changing due to the fast pace.
Certain older things are deprecated and announced automatically when using
them. Old code is usually compatible with new releases. A new release is
always back-compatible until a new version is released. Raku is on its
second version since its initial stable version release in December 2015.
The third version, v6.e, is in the wings. And a user can always install an
older release if all else fails.

Reply via email to