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

Re: Completion for limits



On Jun 15,  9:41am, Kiddle, Oliver wrote:
} Subject: Completion for limits
}
} The new-style completion for limits doesn't work anymore.
} 
} ! compgen -k "(${(j: :)${(f)$(limit)}%% *})"
} --- 1,3 ----
} ! compgen -s '${${(f)"$(limit)"}%% *}'

Hrm.  This must have been broken for a while ... even before the change
to handling of quotes within ${...}, that would have needed to be

  compgen -k "(${(@j: :)${(f)$(limit)}%% *})"

Using `compgen -s ...' is going to re-evaluate $(limit) every time the
completion is performed.  Is adding the @ a better choice?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



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