[Slackbuilds-users] chmod invalid option -- 'h' when installing git-tools
Андрей Рабусов
arabusov at gmail.com
Tue Apr 22 07:21:01 UTC 2025
It could be an alias too.
Heck, shall we use the `/usr/bin` prefix for all of the standard binaries
to prevent that?
On Tue, Apr 22, 2025, 08:26 B. Watson <urchlay at slackware.uk> wrote:
>
>
> On Tue, 22 Apr 2025, Willy Sudiarto Raharjo wrote:
>
> >> https://slackbuilds.org/repository/15.0/development/git-tools/
> >>
> >> I get the above error after sudo ./git-tools.SlackBuild I checked the
> >> script, but I cannot deduce what's wrong. Because -h isn't an option
> for
> >> chmod or find.
> >>
> >> What do?
> >
> > use "su -" or "su", not "sudo"
>
> Actually, sudo is fine for SlackBuilds, provided your user has /sbin
> and /usr/sbin in $PATH. I wrote the git-tools SlackBuild, and I just
> built it with sudo, with no errors.
>
> To the OP: no idea why your chmod doesn't have -h option. I'm looking
> at "man chmod" and I see:
>
> -h, --no-dereference
> affect each symbolic link, rather than the referent
>
> Slackware 15.0 and -current both have the -h option to chmod, so your
> chmod must be something else.
>
> Check & see if you've done something like install busybox and put its
> binaries in $PATH before /bin and /usr/bin, maybe? As your user, what
> does "which chmod" say? Should be "/usr/bin/chmod".
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20250422/aa35d710/attachment-0001.htm>
More information about the SlackBuilds-users
mailing list