我需要解析elisp中的命令行,例如:
(shlex-split "command \"Some file with spaces\" someother\ quote")
;;That gives ("command" "Some file with spaces" "someother quote")
如何以简单的方式完成此任务?
答案 0 :(得分:5)
(split-string-and-unquote“command \”某些带空格的文件\“someother \ quote”)