タグ

2016年4月21日のブックマーク (2件)

  • Create new page · matsumotory/ngx_mruby Wiki

    Attach files by dragging & dropping, selecting or pasting them. Loading Uploading your files… We don’t support that file type. Try again with a GIF, JPEG, JPG, MOV, MP4, PNG, SVG or WEBM. Attaching documents requires write permission to this repository. Try again with a GIF, JPEG, JPG, MOV, MP4, PNG, SVG or WEBM. We don’t support that file type. Try again with a GIF, JPEG, JPG, MOV, MP4, PNG, SVG

    Create new page · matsumotory/ngx_mruby Wiki
    troron
    troron 2016/04/21
  • BASHにおけるクォートを含む文字列の展開について

    $ CMD="some_command abcdef" $ ${CMD} という命令を実行することは、単に $ some_command abcdef という命令を実行することと同様です。 しかし、 $ some_command "abc def" という命令を、冒頭の前者のように実行するにはどのようにしたら良いのでしょうか。 仮に、 $ CMD="some_command \"abc def\"" $ ${CMD} という命令を実行した場合、some_commandには"abcという引数とdef"という引数の2つの引数が渡されたことになってしまいます。つまり、"を(BASHの構文としての)文字列を囲う記号としてではなく、文字列そのものとして認識してしまっているということです。 この方法において、"abc def"を1つの引数として命令を実行させることはできないでしょうか。 よろしくお願い

    BASHにおけるクォートを含む文字列の展開について
    troron
    troron 2016/04/21