t3h*_*man 2 unix linux macos bash zenity
我的bash脚本是
zenity --question --text=Continue? && echo Continuing...
Run Code Online (Sandbox Code Playgroud)
如果用户选择no,我该怎么做才能回显Stopping?即:
zenity --question --text=Continue? && echo Continuing... !&& echo Stopping...
Run Code Online (Sandbox Code Playgroud)
它并不是真的相反&&,但这样的事情可能会:
zenity --question --text=Continue? && echo Continuing... || echo Stopping...
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3194 次 |
| 最近记录: |