2011-05-06 44 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」)