variable
Bash MACHTYPE — machine type label
Bash initializes a machine-type string describing its build target, often CPU, vendor and OS. It is not a complete runtime hardware inventory. Run in a fresh private directory with HOME set to that directory and LC_ALL=C. Expected output (one item per line): machine type present.
Formal Syntax & Structure
bash syntaxbash
${MACHTYPE}Return Value
string
Current value of the variable; expansion does not independently return an exit status.
Working Example
Example Snippetbash
[[ -n $MACHTYPE ]] || exit 1printf 'machine type present\n'