obdiag
obdiag copied to clipboard
[Bug]: obdiag gather plan_monitor --env 中密码出现了!导致命令总是带进去上一次执行的命令
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