[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: io.popen Run command with spaces in argument filename, and get the result
- From: v <v19930312@...>
- Date: Mon, 08 Feb 2021 11:53:20 +0300
On Sun, 2021-02-07 at 23:45 +0000, Andrew Gierth wrote:
> > > > >
> No it doesn't, it turns into:
>
> otfinfo -p 'somefile\'\'';rm -rf /*;echo \'\'''
>
> Note that \ is not an escape character inside '...' so this is
> correct.
>
> Perhaps you misunderstood what the [[ ]] do, you certainly didn't try
> running the actual code.
Oops, my bad - I've misunderstood how shell matches tick braces (and
still a little confused about that as of right now, actually).
--
v <v19930312@gmail.com>