[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Question about escaping in backquote string in double qu
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Question about escaping in backquote string in double quoted strings |
Date: |
Thu, 2 May 2019 13:56:00 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Fri, May 03, 2019 at 01:05:47AM +0800, KHMan wrote:
> echo "[` echo \" \\" \" `]" # [ " ] (A)
> So my question is, what did bash do in (A), which seems to affect the
> specific case of the double quote char only?
At this point you either run away screaming, or you just admit that
everyone was *correct* when they told you that you should use $(...)
instead of `...` because backslash handling inside `...` is too surprising.
Or both.
<https://mywiki.wooledge.org/BashFAQ/082> if you need a web page to
say it again.