From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25911 invoked by alias); 15 Sep 2016 02:15:54 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39334 Received: (qmail 22747 invoked from network); 15 Sep 2016 02:15:54 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.28):SA:0(0.0/5.0):. Processed in 0.336747 secs); 15 Sep 2016 02:15:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=p7FmFzDsaiVhiSq2 hnPTdB8zzDA=; b=F2BCf2sxqZ4HzEHNh2hlzY+j+LQiNUmYxdwfT9rdGXFChA7y pPMC0CHNv47U19iN1/4Gdp+DQiq2AHNk5lh0310GyHnBYQf4Tk6DCANSlomKzwSM ZMvdfc1PLYjB9NKap6jHUhutFV7Azy8uog+z5Ve5ZMRFvh/9kUyeeB8gJOg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=p7FmFzDsaiVhiSq 2hnPTdB8zzDA=; b=hI1OZoHxcFXyyHJkQzRmmpdut8uMBIGCMDw+qw/ptbl0fMR 66+2xzfvd9JDj7eabE8DOquP/65WDduCdvuWpvC6sHoGwr504V8U6v92dp+HxKqi 6+kVF2JfhsyzXWhx9sxxftvtH2cMUh77u4pxhTNWVloCMyDqSFpH6tIfOMSo= X-Sasl-enc: rTTp+TQ/fzAgBXz2rq2FIMfJpV6rgZkHEQQafmelwoE5 1473905748 Date: Thu, 15 Sep 2016 02:15:03 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: [PATCH] _postfix (postconf): Complete only applicable parameters for -X and -#. Message-ID: <20160915021503.GA15486@fujitsu.shahaf.local2> References: <1473830073-331-1-git-send-email-danielsh@fujitsu.shahaf.local2> <160914094658.ZM29734@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <160914094658.ZM29734@torch.brasslantern.com> User-Agent: Mutt/1.5.23 (2014-03-12) Bart Schaefer wrote on Wed, Sep 14, 2016 at 09:46:58 -0700: > On Sep 14, 5:14am, Daniel Shahaf wrote: > } Subject: [PATCH] _postfix (postconf): Complete only applicable parameters > } > } --- > } One question about this patch: > } > } % /usr/sbin/postconf -X > } zsh: do you wish to see all 112 possibilities (28 lines)? > } > } I don't understand why it says "112". > > It's probably the case that each of the matches has been added to > more than one tag group. What's output of ^Xh in place of TAB there? % /usr/sbin/postconf -X <_complete_help> tags in context :completion::complete:postconf:: argument-rest options (_arguments _postfix) tags in context :completion::complete:postconf:argument-rest: values (_postfix_main_cf_parameter _postfix) > What do you get if you agree to see all the possibilities? The prompt says: zsh: do you wish to see all 112 possibilities (28 lines)? If I answer "yes" then I get 28 lines, that show everything in my `postconf -n` output and nothing else: alias_database alias_maps -- hash:/etc/aliases append_dot_mydomain biff -- no config_directory -- /etc/postfix ⋮ smtp_sasl_auth_enable enable_long_queue_ids smtpd_use_tls -- yes ⋮ smtpd_tls_session_cache_database -- btree:${data_directory}/smtpd_scache This is in 'zsh -f'. Thanks, Daniel