[Slackbuilds-users] chmod invalid option -- 'h' when installing git-tools
B. Watson
urchlay at slackware.uk
Tue Apr 22 22:33:02 UTC 2025
On Wed, 23 Apr 2025, Duncan Roe wrote:
> It could be an exported function. These do live in the environment and survive
> quite a lot of things, possibly including sudo. Starting a script with
Took a look at this. You're talking about "declare -fx funcname",
right? Doesn't propagate into sudo. Probably there's a way to force it
to, by editing /etc/sudoers and explicitly including BASH_FUNC_<name>
in env_keep...
They *definitely* don't get propagated with "su -".
>
> #!/bin/bash -p
>
> does prevent it.
>
> If the admins would like, I could make a tree-wide PR or patch - maybe when
> Slackware 15.1 appears would suit?
I don't really think it's necessary. The standard way to run
SlackBuilds is with "su -". The only reason we're talking about
sudo here is that the OP used it. I checked it with sudo to see if
I had the same problem, and I don't. So whatever his problem is, it
wasn't caused by sudo (that's all I was trying to do, eliminate that
possibility).
Since we still haven't heard back from the OP, we're just spinning our
wheels at this point...
More information about the SlackBuilds-users
mailing list