Issue
experts,
I just started to study about the shell script.
And I was reading a stackoverflow page: href="https://stackoverflow.com/questions/13195655/bash-set-x-without-it-being-printed">Bash set +x without it being printed
My question is simple as you see:
{ set +x; } 2>/dev/null
On the shell script, what does the '{ set +x; }' mean?
I already got the answers about the "2>/dev/null" so far.
but I cannot find any idea about the "{set +x;}" but "set -x".
Please teach me what it is.
Thank you!
Solution
set -x
enable a mode, that prints all executed commands to the terminal.
set +x
disables this mode.
Answered By - Kekstington Answer Checked By - Katrina (WPSolving Volunteer)