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

Re: newline grief



On 02/10/2018 02:54 PM, Daniel Shahaf wrote:
> Eric Cook wrote on Sat, 10 Feb 2018 14:46 -0500:
>> for aa in "${(f)$(typeset -m 'var*')}"; do
> 
> There's an API for this information:
> 
> for parameter_name in ${(k)parameters[(I)var*]} ; do
> 
Indeed, my answer was a attempt as explaining how one would loop over lines of output
from a command substitution; not a example of the best way to do what it appears
that he wants.



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