It's not clear to me whether this should be accepted (with the command echo " inside the subshell) or rejected (because of unterminated quotes). Dash rejects it complaining about unterminated quotes.
Morbig does accept it, but the double quotes seem to have disappeared. Whether it should be accepted or not, the output is wrong. Here is the simple json:
Consider the script:
It's not clear to me whether this should be accepted (with the command
echo "
inside the subshell) or rejected (because of unterminated quotes). Dash rejects it complaining about unterminated quotes.Morbig does accept it, but the double quotes seem to have disappeared. Whether it should be accepted or not, the output is wrong. Here is the simple json: