From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10003 invoked by alias); 2 Dec 2011 18:14:59 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16598 Received: (qmail 1057 invoked from network); 2 Dec 2011 18:14:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <111202101428.ZM7415@torch.brasslantern.com> Date: Fri, 02 Dec 2011 10:14:28 -0800 In-reply-to: <20111202173724.GB18623@altlinux.org> Comments: In reply to "Alexey I. Froloff" "Re: Q: _regex_arguments problem" (Dec 2, 9:37pm) References: <20111202131418.GA18623@altlinux.org> <20111202161519.3adb17bf@pwslap01u.europe.root.pri> <20111202173724.GB18623@altlinux.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Q: _regex_arguments problem MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 2, 9:37pm, Alexey I. Froloff wrote: } } I've found so far, that the only utility function, that can } complete anything-but-space-separated list of values is _values. } And it accepts only predefined values. My list of ids is not } static, it is fetched from remote server via executing special } ssh command, so I guess this problem is not related to _regex_* } completion, this is just not possible... The typical way you'd do this with the plain _arguments function is with the ->state mechanism: use _arguments to figure out the context and set a state, then in a 'case' or the like on the state value you call your ssh command to get the list of values and then call _values with that. I'm not familiar enough with _regex_arguments to know if it can be used in a similar two-stage manner.