Closed Krush206 closed 9 months ago
Apparently, this nesting style is very different. I can't seem to find a way to nest three or more commands, but this works: echo "`echo "\`"pwd"\`"`"
Either there's no way to do so or I'm failing to understand.
echo "`{echo,"'`pwd`'"}`"
This works too, but still no luck for multiple nesting.
echo "`echo "\"'`echo "\`"pwd"\`"`'\""`"
For three nests, this works. This is very complicated.
I'm still investigating further.
echo "`echo "\"'`echo "\"'\''`echo "\`"pwd"\`"`'\''\""`'\""`"
Finally made four nests. This nesting style is ridiculous, but does work.
https://bwass.org/bucket/IMG_20221127_093248.jpg
echo "`echo "\"'`echo "\"'\''`echo "\"'\'\\\'\''`echo "\"'\'\\\'\\\\\\\'\\\'\''`echo "\`"pwd"\`"`'\'\\\'\\\\\\\'\\\'\''\""`'\'\\\'\''\""`'\''\""`'\""`"
echo "`echo "\"\`"echo "\"\\\"\\\`\""echo "\"\\\"\\\\\\\"\\\\\\\`\\\"\""echo "\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\`\\\\\\\"\\\"\""echo "\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\`\\\\\\\\\\\\\\\"\\\\\\\"\\\"\""pwd"\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\`\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\`\\\\\\\\\\\\\\\"\\\\\\\"\\\\\\\`\\\\\\\"\\\"\\\`\\\"\"\`\""`"
This works too.
Updated.
This nesting style can lead to confusion, since it must be doubled (as in Bourne Shells). It'd be nice to have a
$()
wrapper for it.