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

Re: [BUG] In reference to patch 39815, about (z) flag and $( parse error



On 15 października 2017 at 03:53:01, Bart Schaefer (schaefer@xxxxxxxxxxxxxxxx) wrote:
> torch% printf '<%s>\n' ${(z)buf}

Btw, interesting use of printf.

> I'm therefore suspicious that something else is involved in your example.

It's rather not a bug after all. The cause is an apostrophe in comment. But (z) isn't comment-aware, so this is fine. Basically this parses "incorrectly":

# '
() {
        au_arr+=(expand-absolute-path up-line-or-beginning-search)
}

Tokens are:

<#>
<'
() {
        au_arr+=(expand-absolute-path up-line-or-beginning-search)
}>

--  
Sebastian Gniazdowski
psprint /at/ zdharma.org



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