Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in _gnu_generic for "cp -a"?
- X-seq: zsh-users 15069
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Bug in _gnu_generic for "cp -a"?
- Date: Thu, 20 May 2010 07:45:40 -0700
- In-reply-to: <20100519173756.GA1456@xxxxxxxxx>
- 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: <20100519125713.GA17396@xxxxxxxxx> <AANLkTilf4VJehRx3kf_XNUc4B8YO1EexzsZIaaclnFJ2@xxxxxxxxxxxxxx> <20100519173756.GA1456@xxxxxxxxx>
On Wed, May 19, 2010 at 10:37 AM, Andy Spiegl <zsh.Andy@xxxxxxxxx> wrote:
> On 2010-05-19, 08:30, Bart Schaefer wrote:
>>
>> What do you see with
>>
>> % cp -<TAB>
>>
> condor:~/tmp> compdef _gnu_generic cp
> condor:~/tmp> cp -<TAB>
> - option -
> --archive -a -- same as -dR --preserve=all
> -d -- same as --no-dereference --preserve=links
So, I have a suspicion that the "=" in the description is fooling
"_arguments ... --" into thinking that the -a option wants an argument
of its own. (I haven't really worked out what's going on in the help
text parsing in there, so I may be way off.) You said before that you
have this completion problem only with the -a option, but do you by
chance also have it with the -d option, which also has an "=" in the
description?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author