【发布时间】:2011-05-06 12:10:14
【问题描述】:
我需要在 elisp 中解析一个命令行,类似于:
(shlex-split "command \"Some file with spaces\" someother\ quote")
;;That gives ("command" "Some file with spaces" "someother quote")
我怎样才能以简单的方式做到这一点?
【问题讨论】:
我需要在 elisp 中解析一个命令行,类似于:
(shlex-split "command \"Some file with spaces\" someother\ quote")
;;That gives ("command" "Some file with spaces" "someother quote")
我怎样才能以简单的方式做到这一点?
【问题讨论】:
(split-string-and-unquote "command \"Some file with spaces\" someother\ quote")
【讨论】: