これは簡単なものでなければなりません。OSXにシェルスクリプトを介してHomebrewをインストールしたいのですが。
ターミナルからのHomebrewの推奨インストールは機能します、
$ ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)
しかし、次のものをファイルtest.shに入れると、
#!/bin/sh
ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)
次にそれを実行し、
$ sh test.sh
次のエラーが表示されます。
test.sh: line 2: syntax error near unexpected token `('
test.sh: line 2: `ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)'
これを機能させるためにシェルスクリプトで使用する正しい構文は何ですか?また、コマンドラインと異なるのはなぜですか?ありがとう!