Collin Funk wrote:
> > I think it should test $host_os, not $host_triplet.
> 
> I think either would work fine.

The value of $host_triplet is of the form CPU-VENDOR-[KERNEL-]OPERATING_SYSTEM.
Where VENDOR is arbitrary.

If someday a GNU/Linux distro comes along with the name "muslimux"
(not a joke, there is already a "Muslims OS", a "Jewbuntu", and we also
had a "Jesux" [that was a joke]) with glibc as the libc, the test of
  $host_triplet   against   *-musl*    would match
while
  $host_os        against   *-musl*    would not match

> For some reason coreutils uses
> $host_triplet everywhere instead of $host_os:

Yes it is a little bit of work to correctly distinguish $host_os from
$host_triplet everywhere.

Bruno




Reply via email to