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\"スペースのあるファイル\"someother\ quote")

于 2011-05-06T12:30:24.023 に答える