【问题标题】:elisp equivalent of python shlex.split?elisp 相当于 python shlex.split?
【发布时间】: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")

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

【问题讨论】:

    标签: python elisp shlex


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-11-25
      • 2016-08-25
      • 2011-10-15
      • 2010-10-29
      • 2011-06-25
      • 2021-10-13
      • 2019-01-08
      相关资源
      最近更新 更多