Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Using the same completion function for various commands
- X-seq: zsh-users 15624
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Using the same completion function for various commands
- Date: Mon, 06 Dec 2010 08:44:28 -0800
- In-reply-to: <20101206162144.58d5b483@xxxxxxxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <201012061512.21791.mrichter@xxxxxxxxxxxxxxxxxxxxxxxx> <AANLkTimY=rEETn1uOdkDJ33kGE=YUDAvevsBvvvMU7YL@xxxxxxxxxxxxxx> <AANLkTim1Ac1-VOkRQ1NXn_qL6-EV06bagVkK7y_UThwB@xxxxxxxxxxxxxx> <AANLkTin+NCoBRzx90fo+s0z7urCCoTA6T3cXTYdt_VD2@xxxxxxxxxxxxxx> <20101206151124.389fd287@xxxxxxxxxxxxxxxxxxxxxxxxx> <AANLkTin8Kn88NXsK4V4Toos0-ZB2hj4RvhX5QxLarq1N@xxxxxxxxxxxxxx> <20101206161020.693f3f4a@xxxxxxxxxxxxxxxxxxxxxxxxx> <20101206162144.58d5b483@xxxxxxxxxxxxxxxxxxxxxxxxx>
On Dec 6, 4:21pm, Peter Stephenson wrote:
}
} Is the following change to _pick_variant right? Why we would ever
} prefer $words[1] to $service, when this seems to be what $service is
} for?
My recollection is that $words[1] is always a command, whereas $service
may just be a placeholder name. However, I can't provide an example
where this would introduce a problem for _pick_variant in particular.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author