On Jan 6, 6:32 pm, Siep Korteling <s.kortel... / gmail.com> wrote:
> JJ wrote:
> > I was reading about Kernel::exec (and the related Kernel::system
> > function and %x operator).
>
> (...)
> > Now, there is a serious limitation to this, which exists on all
> > platforms that allow shell meta-characters in file names (space,
> > asterisk, etc). I usually come across the bug when running
> > applications on Windows. The problem is this:
>
> >   exec("C:\\Program Files\\Anything\\Foo.exe");
>
> > -JJ
>
> Try this:
>
> exec("C://Program Files/Anything/Foo.exe");

The problem is not the slashes; the problem is how Ruby passes the
string to the operating system. Sorry, but this doesn't help.

-JJ