Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: how to show all parms matching a given substring?
- X-seq: zsh-users 8160
- From: "S. Cowles" <scowles@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: how to show all parms matching a given substring?
- Date: Wed, 3 Nov 2004 20:15:50 -0800
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- In-reply-to: <Pine.LNX.4.61.0411031846420.470@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: personal
- References: <200411031447.50010.scowles@xxxxxxxxxxxxx> <Pine.LNX.4.61.0411031846420.470@xxxxxxxxxxxxxxxxxx>
- Reply-to: scowles@xxxxxxxxxxxxx
On Wednesday 03 November 2004 18:53, Bart Schaefer wrote:
> On Wed, 3 Nov 2004, S. Cowles wrote:
> > I would like to solicit suggestions from others about a better, simpler
> > way to get all parameters in the current context matching a given
> > substring. If this can be done using parameter expansion patterns, so
> > much the better.
>
> The parameter names only case is just
>
> typeset +m ${spatt}
>
> and the names-and-values case is
>
> print -l -- ${${(f)"$(typeset -x)"}:#${~spatt}}
Many thanks, Bart.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author