Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: old or new style completion?
- X-seq: zsh-users 11900
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: old or new style completion?
- Date: Sun, 30 Sep 2007 03:30:48 +1200 (NZST)
- In-reply-to: <20070929122144.GC7515@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <20070929113631.33362.qmail@xxxxxxxxxxx> <20070929122144.GC7515@xxxxxxxxxxxxxxx>
On Sat, 29 Sep 2007, Stephane Chazelas wrote:
The completion system will complete according to the expanded text of
the alias. Here, it will complete a rsync command using the _rsync
completion function.
Above it doesn't work as you'd expect because of the "--" that seems to
confuse the completion widget.
So it would seem to be a bug in the _rsync completion function.
If you ommit the "--", it seems to work OK.
===================
1) if the completion widget for rsync farts after the "--" option, that's
a problem with the _rsync function.
2) whether i declare "cpv" as an alias or a function, the completion
system "interprets it" as the command is rsync, not cpv. if there's no way
around that it seems like a problem with the completion system... no?
3) in this particular case, if #1 is addressed things will work fine (with
some interesting exceptions), but #2 is still a problem.
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"Democracy must be something more than two wolves and a sheep
voting on what to have for dinner."
-- James Bovard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author