variable
Bash UID — real user ID
Read-only real numeric user ID. It can differ from EUID in some execution contexts. The fixture compares it to the installed id utility without printing personal identity information. Run in a fresh private directory with HOME set to that directory and LC_ALL=C. Expected output (one item per line): real identity agrees.
Formal Syntax & Structure
bash syntaxbash
${UID}Return Value
integer
Real user ID.
Working Example
Example Snippetbash
[[ $UID == "$(id -ru)" ]] || exit 1printf 'real identity agrees\n'