1
我想將一個空字符串傳遞給emacsclient,以便它將自動啓動emacs服務器(如果它尚未運行)。在命令行上,如果我輸入emacsclient -t -a ''
,這正是我剛剛描述的。在我的bashrc文件中,我有:如何在bash中將空字符串傳遞給emacsclient的別名?
alias ec="emacsclient -t -a \'\'"
哪個不會做我想做的。我得到這個錯誤
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
emacsclient: error executing alternate editor "''"
如何傳遞一個空字符串作爲參數?