From: nobu.nokada@... Date: 2003-07-17T02:06:12+09:00 Subject: Re: Passing arguments to 'env ruby' on OS X Hi, At Wed, 16 Jul 2003 22:47:50 +0900, Paul Brannan wrote: > > #!/bin/sh > > # -*- ruby -*- > > exec ruby -wx "$0" "$@" > > #!ruby > > Will this work if I run "ruby myscript.rb" on a Windows box? Do you mean whether it works as a script directly? #! /bin/sh # -*- ruby -*- # just for editors [ ] || 'eval' 'exec ruby -wx "$0" "$@"' #!ruby puts "hi" > If not, is it possible to make that case work? If you want a way to make a batch file from a script, look at "ruby_bin_dosish" portion in instruby.rb. I don't guess it is possible to merge ruby/shell/batch. -- Nobu Nakada