[that's an email I sent to Thorsten a few weeks ago, reposting here as I'm not sure it was delivered OK].
(tested again on the current git head). 2014-11-19 20:29:51 +0000, Thorsten Glaser: [...] > https://github.com/MirBSD/mksh/commit/9b31399aecc19e7f2b2fd103188e2b56984db18e#diff-1 [...] Hi Thorsten, it looks like your fix is not completely addressing the problem (or there may be more than one problem): 1$ ./mksh -c 'cat <<< "$( : )aa"' aa 2$ ./mksh -c 'cat <<< "$( : )aa"' aa 3$ ./mksh -c 'cat <<< "$( : )aa"' aa 4$ ./mksh -c 'cat <<< "$( : )aa"' $( : )aa 5$ ./mksh -c 'echo "$( : )aa"' aa See 4 above where $(...) has not been expanded. -- Stephane
