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

Re: Bug in _gnu_generic for "cp -a"?



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