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:56 PM Ronald Fischer <ynnor@xxxxx> wrote:
>
> > echo $'a$b\'c'
> >
> > This style allows a bit more interpolation than ordinary single quotes.
>
> My mistake: When I tried this first, it did not work, but I see that I had a typing error. I can get it working now.

I just tried it on the same system you are using just to be sure there
wasn't a bug back then. Works fine.

  zsh -f <<\END
    typeset -p ZSH_VERSION
    uname -sm
    echo $'a$b\'c'
  END

Output:

  typeset ZSH_VERSION=5.5.1
  CYGWIN_NT-10.0 x86_64
  a$b'c

This works the same way as in Bash, by the way.

Roman.



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