gpt4 book ai didi

linux - Exec --no-startup-id 表示 "--"无效选项

转载 作者:太空宇宙 更新时间:2023-11-04 09:22:55 24 4
gpt4 key购买 nike

根据 i3 userguide,我试图在没有“等待光标”的情况下启动应用程序我应该使用 exec 的 --no-statrup-id 选项,但它给了我“不可能”的错误。

$ exec --no-startup-id firefox
bash: exec: --: invalid option
exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]

谁能给我解释一下这是怎么回事?在每本手册中,我发现人们使用这个标志,但是 man exec 没有关于这个功能的信息。

最佳答案

只需使用引号防止 i3-msg 解析参数。

 user  ~ | MyDE  i3-msg exec --no-startup-id /home/mbp/MyDE/xrandr/dock.sh
i3-msg: unrecognized option '--no-startup-id'
user ~ | MyDE i3-msg "exec --no-startup-id /home/mbp/MyDE/xrandr/dock.sh"
[{"success":true}]

关于linux - Exec --no-startup-id <command> 表示 "--"无效选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39913586/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com