Quantcast
Channel: Backtick command encapsulation - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 3 View Live

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 Article


Answer 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 Article


Backtick 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
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>