2011-05-06 39 views
3

我需要解析elisp的命令行,是这样的:elisp相当于python shlex.split?

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

我怎样才能做到这一点以简单的方式?

回答

4

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