我有以下脚本:
#!/bin/bash
set -x
if :; then
echo a
fi
Run Code Online (Sandbox Code Playgroud)
如果我运行bash /tmp/file,a被回显,但如果我运行source /tmp/file,我得到:
bash: /tmp/test: line 6: syntax error: unexpected end of file
Run Code Online (Sandbox Code Playgroud)
输出:
knezi@holly tmp]$set -x; source /tmp/test; set +x
+ source /tmp/test
++ set -x
bash: /tmp/test: line 6: syntax error: unexpected end of file
+ set +x
knezi@holly tmp]$set -x; command source /tmp/test; set +x
+ set -x
+ command source /tmp/test
+ source /tmp/test
++ set -x
bash: /tmp/test: line …Run Code Online (Sandbox Code Playgroud) 由于 XKB 是 X 窗口的一部分,Wayland 中是否也使用了 XKB?如果是这样,是否有任何实用程序计划在某个时候取代 XKB?
在韦斯顿,setxkbmap 显然不起作用。当前推荐的更改键盘布局的方法是什么?