obdiag icon indicating copy to clipboard operation
obdiag copied to clipboard

[Bug]: obdiag gather plan_monitor --env 中密码出现了!导致命令总是带进去上一次执行的命令

Open Teingi opened this issue 7 months ago • 0 comments

Describe the bug

obdiag gather plan_monitor --env 中密码出现了!导致命令总是带进去上一次执行的命令

原因:在大多数Shell(如bash、zsh)中,“!”字符用于历史展开,后面跟着的字符或序号会匹配历史记录中相应的命令。例如,输入!ls可能会自动补全成上一条以ls开头的命令。如果你不小心在命令前输入了“!”,Shell会尝试进行历史展开。

Environment

obdiag 2.x

Fast reproduce steps

obdiag gather plan_monitor --env 中密码出现了!导致命令总是带进去上一次执行的命令

Expected behavior

No response

Actual behavior

No response

Additional context

No response

Teingi avatar Jul 02 '24 06:07 Teingi