help-bash
[Top][All Lists]
Advanced

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

Re: Why no closing single quote is needed when a single quote is escaped


From: Peng Yu
Subject: Re: Why no closing single quote is needed when a single quote is escaped?
Date: Thu, 31 Dec 2020 17:35:11 -0600

> > x='\'
> The difference between single quoting and double quoting is fully
> explained in the bash manual page, under the section "QUOTING".

The man page says the following. But it doesn't say why a closing
single quote is not need to pair with the first quote. Why \' makes
the closing single quote unnecessary.

       Enclosing characters in single quotes preserves the literal
value of each character within the  quotes.   A
       single quote may not occur between single quotes, even when
preceded by a backslash.

If this sentence is not the relevant description in the manpage,
please be specific which sentence is, as I don't find it. Thanks.

--
Regards,
Peng



reply via email to

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