From: Stu Date: 2013-06-30T02:17:21+09:00 Subject: Re: #!/usr/bin/env: No such file or directory --089e013d0f8ad1667904e04e2acd Content-Type: text/plain; charset=ISO-8859-1 What happens when you type ruby in front of it like: % ruby test.rb On Fri, Jun 28, 2013 at 12:12 AM, Todd Sterben wrote: > This works > > $ /usr/bin/env ruby > puts "Hello world" > ^D > > $ ls -la /usr/bin/env Gives > > -rwxr-xr-x 1 root root 22060 Nov 19 2012 /usr/bin/env > > which env gives /usr/bin/env > which ruby gives /usr/bin/ruby > ruby -v gives ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux] > > -- > Posted via http://www.ruby-forum.com/. > > --089e013d0f8ad1667904e04e2acd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
What happens when you type ruby in front of it l= ike:

% ruby test.rb




On Fri, Jun 28, 2013 at 12:12 AM= , Todd Sterben <lists@ruby-forum.com> wrote:
This works

$ /usr/bin/env ruby
puts "Hello world"
^D

$ ls -la /usr/bin/env =A0Gives

-rwxr-xr-x 1 root root 22060 Nov 19 =A02012 /usr/bin/env

which env gives /usr/bin/env
which ruby gives /usr/bin/ruby
ruby -v =A0 gives ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]

--089e013d0f8ad1667904e04e2acd--