Hi Yu, Steven
 

> Don't join the args.  Just do run(`$path $args`).   
>
> (Yichao suggested run(`ls $(args...)`), but this is unnecessary and 
> somewhat redundant.)
>
> (Julia's run function does invoke the shell at all, so it doesn't uses 
> spaces to separate arguments. Instead, it passes each argument as a 
> separate string.  This allows it to be robust for e.g. filenames containing 
> spaces.) 
>

Great, with using arrays it works.(bellow is working example for others)
path="/grass_trunk/general/g.parser"
args=["arg1","arg2"]
unshift!(args,path)
run(`$args`)

Thanks! Matej 

Reply via email to