Ikenna Okpala recommended this .gemrc
(我修改了它略):何時/爲什麼要使用--env-shebang和紅寶石?
--- :verbose: true :bulk_threshold: 1000 install: --no-ri --no-rdoc --env-shebang :sources: - http://gems.rubyforge.org/ :benchmark: false :backtrace: false update: --no-ri --no-rdoc --env-shebang :update_sources: true
我以前沒有注意到--env-shebang
。我擡頭看着http://guides.rubygems.org/command-reference/爲--env-shebang
的文檔:
Install/Update Options: ... -E, --[no-]env-shebang - Rewrite the shebang line on installed scripts to use /usr/bin/env
實事求是地講,爲什麼會在--env-shebang
選項是重要的? (我從來沒有使用它)。