On Sep 30, 6:13=A0pm, Larry Jones <misterljo... / yahoo.com> wrote:
> System command won=92t work with arguments.
>

Please always indicate which version of Ruby are you talking about
(run "ruby -v")

> For example, a simple test in Windows (launch Notepad from ruby..)
>
> command =3D 'c:\windows\notepad=92
> arg =3D =93myfile.txt=94
> system(command, arg)
>
> Remove the arg and Notepad launches fine.
> Notepad (or any other program) won't launch with command line arguments.
>
> Am I missing something?
>

calling system() with multiple arguments is not candidate of command/
shell expansion, it assumes you know what are you doing.

C:\windows\notepad does not exist... is notepad.exe

You need to include all.

This has changed in Ruby 1.9 but Ruby 1.8 is "broken" or not smart
enough to deal with this. Which brings again the importance of always
tell us which version are you talking about.

--
Luis Lavena