开发者

elisp equivalent of python shlex.split?

I need to parse a command line in elisp, something like:

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

How can I accomplish this in a simple w开发者_运维问答ay?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜