help-bash
[Top][All Lists]
Advanced

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

Re: backslash difference between ` and $(


From: Greg Wooledge
Subject: Re: backslash difference between ` and $(
Date: Wed, 25 Dec 2024 16:46:13 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

On Wed, Dec 25, 2024 at 22:31:57 +0100, microsuxxor wrote:
> just didnt know the backslashes dont  work the same way thing
> ..
> rip `

<https://mywiki.wooledge.org/BashFAQ/082> has a few examples, but not
much explanation, I'm afraid.

The man page offers this:

       When  the  old-style  backquote form of substitution is used, backslash
       retains its literal meaning except when followed by $, `,  or  \.   The
       first backquote not preceded by a backslash terminates the command sub‐
       stitution.  When using the $(command) form, all characters between  the
       parentheses make up the command; none are treated specially.



reply via email to

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