0

I was reading a stackoverflow page: 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 have answers about the 2>/dev/null so far.

but I cannot find any explanation about the {set +x;} but set -x.

Shawn
  • 47,241
  • 3
  • 26
  • 60

1 Answers1

0

set -x enable a mode, that prints all executed commands to the terminal.

set +x disables this mode.

source

Kekstington
  • 114
  • 4