From: Nobuyoshi Nakada Date: 2008-01-08T07:14:12+09:00 Subject: Re: Ruby's Kernel::exec (and system and %x) Hi, At Mon, 7 Jan 2008 05:14:59 +0900, JJ wrote in [ruby-talk:286375]: > In Perl, one can force the no-shell-interpreter path by calling exec > (and system) like so: > > my $cmd = "C:\\Program Files\\..."; > exec( { $cmd } $cmd ); cmd = "C:/Program Files/..." exec([cmd, cmd]) Citing from `ri exec': If the first argument is a two-element array, the first element is the command to be executed, and the second argument is used as the +argv[0]+ value, which may show up in process listings. -- Nobu Nakada