On Tue, Apr 25, 2023 at 5:18 PM Todd Zullinger <t...@pobox.com> wrote:
>
> Tom Horsley wrote:
> > https://bugzilla.redhat.com/show_bug.cgi?id=2189656
> >
> > God knows how many scripts I have that use "uname -p" to get
> > the architecture name, but it now returns "unknown" instead of
> > "x86_64".
> >
> > I guess I'll replace uname with a script that invokes the real
> > uname unless it is called with the -p option, then echoes x86_64 :-).
>
> It's not a bug. :)
>
> A non-upstream patch was removed¹, which had kept the
> long-deprecated uname -i and -p options.
>
> ¹ https://src.fedoraproject.org/rpms/coreutils/c/cd953e1

uname (1) says -i and -p are valid options:

       -p, --processor
              print the processor type (non-portable)

       -i, --hardware-platform
              print the hardware platform (non-portable)

> `uname -m` is probably what you want to use in those
> scripts, if you were looking for x86_64 as the output.

Jeff
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to