How to have Bash set -x only apply to the very next command without creating child processes and without calling set +x

前端 未结 0 624
悲哀的现实
悲哀的现实 2020-12-11 01:44

This is limited to Bash only, and the answer needs to work on all Bash versions without exception.

I do this now:

op1
(set -x; op2)
op3
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题