Project

General

Profile

Actions

Bug #13786

closed

Unexpected behavior handling shebang

Added by vo.x (Vit Ondruch) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
[ruby-core:82267]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0