开发者

elisp equivalent of python shlex.split?

开发者 https://www.devze.com 2023-03-03 03:01 出处:网络
I need to parse a command line in elisp, something like: (shlex-split \"command \\\"Some file with spaces\\\" someother\\ quote\")

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

精彩评论

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

关注公众号