Hello,

Shebang line should like "#! /usr/bin/env ruby" or "#! <path to your
ruby VM i.e /usr/bin/ruby>". This line tell shell which program to
run.

Regards,

On Thu, Jun 27, 2013 at 10:58 AM, Todd Sterben <lists / ruby-forum.com> wrote:
> I am new to both linux and ruby.  I am using Ubuntu and Ruby 1.9
>
> When I do which ruby, I get /usr/bin/ruby
> When I do ruby -v I get ruby 1.9.3p0 (2011-10-30 revision 33570)
> [i686-linux]
>
> When I try to kick off a simple script
>
> #!/usr/bin/env
>
> puts "Hello"
>
> I get
>
> ./test.rb: line 1: #!/usr/bin/env: No such file or directory
> ./test.rb: line 4: puts: command not found
>
>
> Why?
>
> Thanks
>
> Todd
>
> --
> Posted via http://www.ruby-forum.com/.



-- 
Duong Quang Ha (H Quang Dng in Vietnamese)
blog.haqduong.com