Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Installer#bash_prolog_script
bash_prolog_script
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/installer.rb, line 999
def bash_prolog_script
if load_relative_enabled?
<<~EOS
#!/bin/sh
# -*- ruby -*-
_=_\\
=begin
bindir="${0%/*}"
ruby="$bindir/#{ruby_install_name}"
if [ ! -f "$ruby" ]; then
ruby="#{ruby_install_name}"
fi
exec "$ruby" "-x" "$0" "$@"
=end
EOS
else
""
end
end
No documentation available