Hi,

I encounter a problem of parsing in ksh(1): a quote in a comment in a
command substitution $(...) or `...` is parsed as quote and a closing quote
is expected.

Here code snippet that expose the problem:

$ cat test.sh
echo $(echo abc |
        # comment
        cat)

echo $(echo abc |
        # comment with quote '
        cat)

$ ksh ./test.sh
abc
./test.sh[9]: no closing quote


As side note, bash(1) don't have this parsing problem.

$ bash ./test.sh
abc
abc
$ 

Thanks.
-- 
Sébastien Marie

Reply via email to