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 Oct 15,  6:44pm, Daniel Shahaf wrote:
}
} > On Oct 15,  4:31pm, Sebastian Gniazdowski wrote:
} > }
} > } It's rather not a bug after all. The cause is an apostrophe in comment.
} > } 
} > } # '
} > } () {
} > }         au_arr+=(expand-absolute-path up-line-or-beginning-search)
} > } }
} 
} To be clear, the parse in the grandparent message is correct for an
} interactive shell with interactivecomments disabled.

The (z) flag doesn't distinguish interactive or interactivecomments; it
never interprets comments.  That's one reason why (Z:c:) got added.

There probably ought to be (Z) options for rcquotes and rcexpandparam
as well.



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