↧
Answer by Stéphane Chazelas for Backtick command encapsulation
Depends on your version of bash: bash-4.2$ echo `echo \`echo "uh!"\`` bash: !"\``: event not found bash-4.3$ echo `echo \`echo "uh!"\`` uh! In bash-4.3, !" is no longer eligible as a history event...
View ArticleAnswer by PSkocik for Backtick command encapsulation
This is interesting. This expands to uh: echo `echo \`echo uh\`` and not even echo "`echo \`echo uh\``" suppresses the inner expansion. In both bash and POSIX shells (dash), you have $() as a...
View ArticleBacktick command encapsulation
test@debian:~$ echo `echo \`echo "uh!"\`` uh! How does the Bash do that? It seems that it first executes the expression in the non-escaped backticks, which gives back (the double-quotes "" are...
View Article