Hi I have a question about bash.
and I'm new to it.
I made a file named "test.sh" and its contents is
echo "$(id -u)"
+ id -u
+ echo 1011
$UID is a Bash variable that is not set under
sh, that's may be why it outputs blank lines.
bash test.sh or make your script executable with
chmod u+x test.sh, the program defined in shebang will then be used (