From: Dave Thomas Date: 2001-03-31T14:52:44+09:00 Subject: [ruby-talk:13379] Re: Passing an array to `exec'? Lloyd Zusman writes: > cmd = [ '/bin/ls' ].concat( ARGV ) > eval 'exec("' + cmd.join('", "') + '")' Use the multi-argument form of exec: exec( "/bin/ls", *ARGV) Regards Dave