From: Clint Adams <clint@zsh.org>
To: Damien Wyart <damien.wyart@free.fr>
Cc: zsh-workers@sunsite.dk
Subject: Re: Errors with ssh and rsync completion in zsh-beta (Debian unstable)
Date: Thu, 5 Jul 2007 13:32:55 -0400 [thread overview]
Message-ID: <20070705173255.GA3338@scowler.net> (raw)
In-Reply-To: <20070705162157.GA3988@localhost.localdomain>
On Thu, Jul 05, 2007 at 06:21:57PM +0200, Damien Wyart wrote:
> Playing a bit with completion, I came into the following problem. Having
> this kind of settings in .zshrc (simplified to get a minimal example) :
You can further simplify that to
users=(dw dwyart root)
zstyle ':completion:*' users $users
autoload -U compinit
compinit
and then..
+_ssh_hosts:7> _combination -s '[:@]' my-accounts users-hosts 'users=dw' hosts -J -default-
+_combination:53> local sep tag style keys pats key num tmp
+_combination:55> [[ -s == -s ]]
+_combination:56> sep='[:@]'
+_combination:57> shift 2
+_combination:65> tag=my-accounts
+_combination:66> style=users-hosts
+_combination:67> shift 2
+_combination:69> keys=( users hosts )
+_combination:70> pats=( '*' '*' )
+_combination:72> [[ 'users=dw' == '*=*' ]]
+_combination:73> tmp=users
+_combination:74> key=users
+_combination:75> num=users
_combination:76: bad math expression: operator expected at `dwyart roo...'
+_combination:76> pats[$keys[(in:num:)$key]]=dw
+_combination:77> shift
next prev parent reply other threads:[~2007-07-05 17:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-05 16:21 Damien Wyart
2007-07-05 17:32 ` Clint Adams [this message]
2007-07-06 13:04 ` Damien Wyart
2007-07-05 18:20 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070705173255.GA3338@scowler.net \
--to=clint@zsh.org \
--cc=damien.wyart@free.fr \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).