From: Daniel Stephens Date: 2013-05-09T01:50:25+09:00 Subject: Re: Problem with FileUtils move command. --047d7b624d3ce41a4f04dc37bab2 Content-Type: text/plain; charset=ISO-8859-1 Maybe it's not in [0]?? Drop that loop at the top of your script as well and lets see what we get. ARGV.each do |arg| puts "Argument: #{arg}" end On Wed, May 8, 2013 at 11:43 AM, Hassan Schroeder < hassan.schroeder@gmail.com> wrote: > On Wed, May 8, 2013 at 8:56 AM, Peter Bailey wrote: > > > Yeh, that's the name of the PDF I want the script to work on. I'm using > > 2.0.0p0 Ruby. > > > > I ran your little script there, and, I got "foo." > > Well, I can't imagine how you could be passing in an argument and > yet ARGV is empty. I certainly can't find any way to reproduce it on > OS X. > > Do you have another Windows box to try it on? Alternately move > that raise statement to be the first program line and run the script > with -w for verbose output, though I doubt that'll tell us anything > different. > > -- > Hassan Schroeder ------------------------ hassan.schroeder@gmail.com > http://about.me/hassanschroeder > twitter: @hassan > > --047d7b624d3ce41a4f04dc37bab2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Maybe it's not in [0]?? Drop that loop at the top of y= our script as well and lets see what we get.

ARGV.each do |arg|=
=A0=A0puts "Argument: #{arg}"
end


On Wed, May 8, 2013 at 11:43 AM, Hassan Schroeder <<= a href=3D"mailto:hassan.schroeder@gmail.com" target=3D"_blank">hassan.schro= eder@gmail.com> wrote:
On Wed, May 8, 2013 at 8:5= 6 AM, Peter Bailey <lists@ruby-f= orum.com> wrote:

> Yeh, that's the name of the PDF I want the script to work on. I= 9;m using
> 2.0.0p0 Ruby.
>
> I ran your little script there, and, I got "foo."

Well, I can't imagine how you could be passing in an argument and=
yet ARGV is empty. I certainly can't find any way to reproduce it on OS X.

Do you have another Windows box to try it on? Alternately move
that raise =A0statement to be the first program line and run the script
with -w for verbose output, though I doubt that'll tell us anything
different.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.= me/hassanschroeder
twitter: @hassan


--047d7b624d3ce41a4f04dc37bab2--