Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug related to single-quoting a String



On Wed, Apr 8, 2020 at 12:40 PM Ronald Fischer <ynnor@xxxxx> wrote:
>
> What I want to report can be a bugh either in the documentaion (man-page) or in the implementation, depending on which one is correct.
>
> I am running Zsh 5.5.1 for Cygwin (which seems to be the most recent one available for this platform).
>
> In the man-page, it says in the chapter about single-quoting a string:
>
>     A literal ' character can be included in the string by using the \' escape.

Here's the whole paragraph from which this quote is taken:

  A string enclosed between '$'' and ''' is processed the same way as the
  string arguments of the print builtin, and the resulting string is
  considered to be entirely quoted.  A literal ''' character can be
  included in the string by using the '\'' escape.

It's talking about $'...'. Both the documentation and the
implementation are correct.

Roman.



Messages sorted by: Reverse Date, Date, Thread, Author