bash script: different results when called with or without sudo – askubuntu.com

In Ubuntu 16.04.3, I have a very simple bash script: test.sh [[ 0 == 0 ]] && result="true" || result="false" echo $result echo $USER $SHELL $0 When I call it as the non-root user me or as ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "bash script: different results when called with or without sudo – askubuntu.com"