Menu

#22 exec with a space in one of the $options

v1.0 (example)
open
nobody
None
5
2014-03-12
2013-11-18
No

To work correctly with an argument that include a space.
To my opinion the exec function should look like this

function exec($application, $options)
{
    if(is_array($options)) $options = join(',', $options);
    return $this->evaluate("EXEC $application \"$options\"");
}

Discussion


Log in to post a comment.