On 2016-08-18, Martin Natano <[email protected]> wrote:

> ksh.1 states:
>
>       Note: $(command) expressions are currently parsed by finding the 
> matching
>       parenthesis, regardless of quoting.  This should be fixed soon.
>
> Seems like the "soon" mentioned here is already past.
>
>       $ echo $(echo "closing: )")
>       closing: )
>       $

I guess.  There _are_ problems in this area, though.

$ case x in x);; *);; esac
$ echo $(case x in x);; *);; esac)
ksh: syntax error: `;;' unexpected

-- 
Christian "naddy" Weisgerber                          [email protected]

Reply via email to