elisp相当于python shlex.split?

时间:2011-05-06 12:10:15

标签: python elisp shlex

我需要解析elisp中的命令行,例如:

(shlex-split "command \"Some file with spaces\" someother\ quote")
;;That gives ("command" "Some file with spaces" "someother quote")

如何以简单的方式完成此任务?

1 个答案:

答案 0 :(得分:5)

(split-string-and-unquote“command \”某些带空格的文件\“someother \ quote”)