variable

Bash HOSTTYPE — host architecture label

Bash initializes this label to describe the host type for which it is running. Exact strings are implementation/build-dependent; use capability checks instead of relying on guessed values. Run in a fresh private directory with HOME set to that directory and LC_ALL=C. Expected output (one item per line): host type present.

Formal Syntax & Structure

bash syntaxbash
${HOSTTYPE}

Return Value

string

Current value of the variable; expansion does not independently return an exit status.

Working Example

Example Snippetbash
[[ -n $HOSTTYPE ]] || exit 1printf 'host type present\n'
Bash Reference