get_isa()
in get-stack.sh
is as follows:
# determines the the CPU's instruction set get_isa() { if uname -m | grep -Eq 'armv[78]l?' ; then echo arm elif uname -m | grep -q aarch64 ; then echo aarch64 else echo x86 fi }
get_isa()
is used by is_x86_64()
which, in turn, is used by do_distro()
(called in the 'Linux' limb of do_os()
).
get_isa()
assumes that if the output of uname -m
(the machine hardware name) is not armv6l
, armv7l
or aarch64
then it is x86_64
(or x86
). However, this Wikipedia table indicates that other values are possible when uname -s
(the kernel name) is Linux
, including arm6l
, sparc64
,ppc64
,i686
,ppc
,k1om
, and 'mips
.
It has been suggested that this is a 'bug waiting to happen'.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4