Issue #13786 has been updated by vo.x (Vit Ondruch). shevegen (Robert A. Heiler) wrote: > May I ask, what is the scl program doing with the shebang line? Ok, lets use different shebangs, where the "scl" won't distract you: ~~~ $ cat <<EOF > foo > #!/usr/bin/ruby -- ruby > EOF $ ruby foo /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- uby (LoadError) from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' $ cat <<EOF > foo > #!rubbish ruby -- ruby > EOF $ ruby foo /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- uby (LoadError) from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' ~~~ ---------------------------------------- Bug #13786: Unexpected behavior handling shebang https://bugs.ruby-lang.org/issues/13786#change-66053 * Author: vo.x (Vit Ondruch) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux] * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- Ruby exhibits unexpected behavior handling this shebang: ~~~ $ cat <<EOF > foo > #!/usr/bin/scl enable rh-ruby22 -- ruby > EOF $ ruby foo /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- uby (LoadError) from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' ~~~ This was originally reported here [1]. [1]: https://bugzilla.redhat.com/show_bug.cgi?id=1478833 -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>