curl コマンドを実行するために、windows7 で grunt (v0.4.5) と grunt-shell を使用しています。それにはいくつかの問題があります。
curl "dev.machine.com/caches/dependency/clear
コマンドラインのプレーンは正常に機能します。
grunt-shell 構成部分:
shell: {
resetCaches: {
command: 'curl "dev.machine.net/caches/dependency/clear"',
options: {
stdout: true,
stderr: true,
stdinRawMode: true,
failOnError: false,
execOptions: {
maxBuffer: "Infinite"
}
}
}
}
経由で同じコマンドを実行すると、grunt shell:resetCaches
すべてが壊れます。
エラーメッセージ:
curl: (6) Could not resolve host: dev.machine.net\caches\dependency\clear
どういうわけかスラッシュがバックスラッシュになりました。しかし、なぜ?