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

Re: [PATCH] Make the parameter expansion subscript flags parse error message, "error in flags", identify the location of the parse error.



On Sat, 2021-04-03 at 02:49 +0000, Daniel Shahaf wrote:
> ---
> Review of the logic obtaining and massaging str_copy_for_output would be 
> appreciated.  It's a 2500-line function and there are multiple char*
> variables that refer to the same memory locations as *str, so it's
> conceivable I overlooked something.

I think this is early enough in the function it should be fine.  It's
moving from left to right except where it needs to find something
matching, and the flags are first.

pws





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