help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash: A Question


From: Greg Wooledge
Subject: Re: Bash: A Question
Date: Wed, 3 Jun 2020 07:21:38 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Wed, Jun 03, 2020 at 07:49:33AM +0200, Lord Sam wrote:
> *echo "`echo \"\`echo \\"hello\\"\`\"`"*
> 
> and
> 
> *echo "$(echo "$(echo "hello")")"*
> 
> —the former can be made, upon slightly adjusting the command, to produce
> outputs that I could not find an explanation for, either by trying to
> answer myself or by searching online.

That's why you don't *use* the backtick syntax.  It has been deprecated
for decades.

Just use the $( ) syntax.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]