ruby script/runner ''load "filename.rb"''* fails with ./script/../config/../vendor/rails/railties/lib/commands/runner.rb:47: (eval):1: compile error (SyntaxError) Rails version is 1.2.0 on Linux Any clues on what could be incorrect? Thanks! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 22 Apr 2008, at 18:28, Irene Smile wrote:> > ruby script/runner ''load "filename.rb"''* > fails with > ./script/../config/../vendor/rails/railties/lib/commands/runner.rb:47: > (eval):1: compile error (SyntaxError) > > Rails version is 1.2.0 on Linux >The * will presumably expand to everything in your current directory, but because you''ve got some ruby code at the front it''s probably trying to evaluate that list of files as if it were ruby, which is unlikely to work. What were you actually trying to do? Fred> Any clues on what could be incorrect? > > Thanks! > -- > Posted via http://www.ruby-forum.com/. > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyon--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 22 Apr 2008, at 18:28, Irene Smile wrote: > >> >> ruby script/runner ''load "filename.rb"''* >> fails with >> ./script/../config/../vendor/rails/railties/lib/commands/runner.rb:47: >> (eval):1: compile error (SyntaxError) >> >> Rails version is 1.2.0 on Linux >> > The * will presumably expand to everything in your current directory, > but because you''ve got some ruby code at the front it''s probably > trying to evaluate that list of files as if it were ruby, which is > unlikely to work. What were you actually trying to do? > > Fredruby ./script/runner ''load "filename.rb"'' also results in from ./script/../config/../vendor/rails/railties/lib/commands/runner.rb:47 from ./script/runner:3 Note that * is not suffixed at end -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---