elisp相当于python shlex.split?

pyg*_*iel 4 python elisp shlex

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

(shlex-split "command \"Some file with spaces\" someother\ quote")
;;That gives ("command" "Some file with spaces" "someother quote")
Run Code Online (Sandbox Code Playgroud)

我怎样才能以简单的方式实现这一目标?

小智 5

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