Andy Chu <address@hidden> wrote:
> On Thu, Oct 3, 2019 at 3:07 PM Greg Silverman <address@hidden>
> wrote:
>> In Python one can spawn a child process and avoid bash expanding command
>> line arguments, e.g.
>>
>> //file: ls.py import subprocess proc =
>> subprocess.Popen(['/bin/ls','*'],shell=False)
>
> Simplest way:
> $ mycmd=(ls '*')
> $ "${mycmd[@]}"
> ls: cannot access '*': No such file or directory
Why the array? ¿Is not this exactly the same as:
$ ls '*'