From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11906 invoked by alias); 9 Oct 2014 02:47:38 -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: 19223 Received: (qmail 20290 invoked from network); 9 Oct 2014 02:47:25 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :user-agent:message-id:in-reply-to:date:date:reply-to:references :subject:subject:from:from:received; s=mail20140220; t= 1412822440; bh=VtEdFjitPHC2TvuWMVcT7FilshjWd1mAWwML5XwqzAs=; b=X fGyAPgJMDZ82Ml7RLiYpwVLBEfeCI/zuVtEi1i3WuKDo2/ZNsV6hlNCRQOhIxHM+ RwTgrSfmR646JXyMZFLW++7d1AYJmMhOSQVRW0G7JH5kwwQDbyZWVsoP6DE/zgvP uqh/vgjBfCYrR+XxvRHGEzJSTjbmyrKeLS54xICocJglUEh+m7X9bt7DyrMn3ToF NamcoDrDZJ2y3EsJz49kJMESb39AGB9YZNSfOW63fw6LyGIb+pEUbRzaNYDycsPw l6hQZou8Eybw2EbALGtiZgHfbT5H7b+U377G8uJP/O7w3TJ3EFIuoMBsLLmj+g34 0MtAbNxEX3u2ChjEWVPwx/4kGSYpCCeWkRwTYsib/2u7uFJ7UZpVAur/Um6NUxeR BbmBfrvQXwanTQtIqrvAOOohRb7qxLoRuTtwK0YFcbOVRrjDnODFRndzKkjQph/J RNB7B59vHzb4eeGqxtLR6E2PYPfPNLEeOmyWDbzyl/BtlKk5QV3elL1uPNjNDXIf zPGSXb/oqD6wiTgMDWV3gOhE7KB9Lz0zqUND6Ym960CiuJgy+81mC3WENm6lUhwJ pdwJLRX9bMcHDpnmquYIoO6XxSK3HMThQJZR7kJyqEPly4HBlFgZ9mM9oysoyGOJ wpWX6QmrmzYaaoa3VBoIunPCw/bKEIIY8tkZBABht0= X-Virus-Scanned: amavisd-new at heinlein-support.de From: Clemens =?utf-8?Q?Sch=C3=BCller?= To: Bart Schaefer Cc: zsh users Subject: Re: no tab completion with equo References: <87vboon44t.fsf@cougar.home.aneadesign.com> <1936860.7jLd61Eyrh@note> <87a95zmt65.fsf@cougar.home.aneadesign.com> <140916172835.ZM5518@torch.brasslantern.com> Reply-To: Clemens =?utf-8?Q?Sch=C3=BCller?= Date: Thu, 09 Oct 2014 04:40:38 +0200 In-Reply-To: <140916172835.ZM5518@torch.brasslantern.com> (Bart Schaefer's message of "Tue, 16 Sep 2014 17:28:35 -0700") Message-ID: <87ppe2ge3d.fsf@cougar.home.aneadesign.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-Operating-System: Linux cougar 3.14.0-sabayon #1 SMP Mon Sep 22 02:32:59 UTC 2014 x86_64 Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz GenuineIntel GNU/Linux MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello! Bart Schaefer writes: > On Sep 16, 6:22pm, Clemens Schuller wrote: > } > } >> cmds=3D( ${(f)"$(equo --help |tr "\t" ":" | grep "^:[^:-]" | sed > } >> 's/^:\(\w*\).*:\+/\1:/')"} ) _describe -t commands 'equo command' cm= ds > } > > } > (there is no \t's anymore in equo output) ;) > }=20 > } When I completely cut out the tr part from the pipe, the error is the s= ame. > }=20 > } Do you mean this or something else? > > I think you need to run "equo --help" and look at it. Removing the "tr" > just fails to convert anything into colons, so the grep|sed that follows > won't properly slice up the listing into the individual sub-commands. Sorry, but I am not familiar with shell coding. I will wait, until the changes are applied in the _equo file ;-) --=20 Best Regards, Clemens Sch=C3=BCller