>Synopsis:      quotes in comments within $(command substitution) are parsed
>Category:      sh
>Environment:
        System      : OpenBSD 5.8
        Details     : OpenBSD 5.8 (GENERIC) #1170: Sun Aug 16 02:26:00 MDT 2015
                         
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
        The shell surreptitiously parses comments within $()-style
        command substitutions.  Unbalanced single and double quotes and
        backticks in comments within command substitutions (such as the
        word "doesn't") cause obscure and hard-to-trace syntax errors.
        Obviously, comments shouldn't be parsed under any circumstances.
>How-To-Repeat:
        #! /bin/sh
        : $( true       # comment with unbalanced quote'
             true)
>Fix:
        Unknown.

Reply via email to