It's work: CURRENT_UID=1000 It's not work: (other command result) CURRENT_UID=$(id -u) (previous defined environment variable) CURRENT_UID=$UID