I know what is bash -x, but what is bash +x ? Googling found no results and the manual also says nothing about it.
Asked
Active
Viewed 156 times
2 Answers
3
All of the single-character options are as if they were typed in the set
command. -x
turns on option x
, +x
turns off option x
.

Tim Roberts
- 48,973
- 4
- 21
- 30
-
I believe it's turned off by default. – user1206899 Apr 24 '22 at 06:46
-
Yes, but if it is called in a shell where the option is on, they want to turn it off. – Tim Roberts Apr 24 '22 at 06:58
0
https://unix.stackexchange.com/questions/409366/what-is-bash-x
-x turns on x trace and +x turns it off as far as I understand

Orel Fichman
- 150
- 6