4

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

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

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

4

1 回答 1

5

(split-string-and-unquote "command \"Some file with spaces\" someother\quote")

于 2011-05-06T12:30:24.023 回答