shell-quote-argument 中文路径报错

把当前文件夹转换成一个 cd 命令跳转,当前文件夹是

"/home/q/annex/结题/"

转换后变成

cd "/home/q/annex/\结\题/"

terminal 就不认了,我用的是 guake

(use-package terminal-here
:config
(defun my-terminal-here-terminal-command (dir)
    (list "guake" "-s" "0" "--show" "-e"
        (concat "cd \"" (shell-quote-argument (expand-file-name dir)) "\"")))
(setq terminal-here-terminal-command 'my-terminal-here-terminal-command))

不需要(shell-quote-argument ...)两边的"吧,直接(concat "cd " (shell-quote-argument ...))

哇,好了,谢谢!