On Mon, May 17, 2021 at 1:09 AM Oliver Kiddle wrote: > > On 27 Apr, Marlon Richert wrote: > > This patch improves the extra-verbose completion display strings for > > arrays and associative arrays. > > - verbose=( > > - ${described[@]:/(#m)*/"${MATCH}:${(@q+)${(Pkv@q+)MATCH}//\\/\\\\}"} ) > > + verbose=( ${${${(f@)"$( typeset -m $described )"}/=/:}[@]//'\'/'\\'} ) > > Why the use of -m here? Is that to avoid it creating variables (which > may not matter especially in the subshell). Do we need to be concerned > about the possibility of glob characters appearing there and producing > more output than expected? Here's a new version of the patch, which hopefully addresses the concerns above and has a satisfactorily descriptive commit message.