[Slackbuilds-users] chmod invalid option -- 'h' when installing git-tools
B. Watson
urchlay at slackware.uk
Tue Apr 22 07:29:29 UTC 2025
On Tue, 22 Apr 2025, Андрей Рабусов wrote:
> It could be an alias too.
If that were possible, it would be an absolute nightmare.
> Heck, shall we use the `/usr/bin` prefix for all of the standard binaries to prevent that?
Aliases don't "survive" sudo's user change. They don't live in the
environment, so they don't get propagated from your interactive shell
to the SlackBuild script.
Example:
$ alias foo='echo "gotcha"'
$ foo
gotcha
$ sudo foo
Password:
sudo: foo: command not found
More information about the SlackBuilds-users
mailing list