I am attempting to write a bash parser. Many resources have referred to this wiki
One area I am getting stuck is why the following would work
echo "$(echo "hi")" # output => hi
According to the wiki, quotes are parsed before command substitution. In that case, why wouldn't there be an error parsing the first set of double quotes i.e.