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

Re: old or new style completion?



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