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 14,  4:44pm, Sebastian Gniazdowski wrote:
}
} But I've spotted other thing. Z+cn+ seems to parse "always", (z) seems
} to parse superficially when it occurs e.g. anonymous function.

I'm not able to reproduce this with a simple test case, e.g.:

torch% buf='#foo                
quote> () {           
quote>  echo baz  
quote>  }    
quote> #done'
torch% printf '<%s>\n' ${(z)buf}
<#foo>
<;>
<()>
<{>
<;>
<echo>
<baz>
<;>
<}>
<;>
<#done>

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



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