From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29882 invoked from network); 16 Aug 2020 14:10:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Aug 2020 14:10:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=uYrBKVuevx7f3xbnwrtGEFZjoarzhWnIli/d6T7aVdY=; b=IqxSTM6eEcHF6iKcMBeSjnH18+ 1XcjcNrhjWH4fZJFDb6v+VJDHkek7rE0QwVfk3YXCepcp57a4O/hQ4QiMR6dcyp2LY5L0aUIgUtPU ij/+ERDT8IHnifgefkVG9O3ulFlBF3aX+KltWcXsMPJvyqX57SZbt73k6JzTAwJTtP/isZ+z7YOHB pEf7tf4HupX3kPXxAE5inzDzzw4euG5BN4Nst0h+5CPG4m4YhtZsovGLJMmxr459M3dUc30YqC+Ho LGgr5dDhoBel5OITCYpZfTnjJ3fExymXeZFXvRJOI2G8OWFyLpYW1ByipBe6PW6Et2BiZZX/HiGV0 C6avWrwg==; Received: from authenticated user by zero.zsh.org with local id 1k7JMQ-0007Wi-Iq; Sun, 16 Aug 2020 14:10:10 +0000 Authentication-Results: zsh.org; iprev=pass (wout1-smtp.messagingengine.com) smtp.remote-ip=64.147.123.24; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm3 header.a=rsa-sha256; dmarc=skipped; arc=none Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:52303) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1k7JM9-0007Mw-Ux; Sun, 16 Aug 2020 14:09:55 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B24061384; Sun, 16 Aug 2020 10:09:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 16 Aug 2020 10:09:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=fm1; bh=uYrBKVuevx7f3xbnwrtGEFZjoa rzhWnIli/d6T7aVdY=; b=cpI2EoGNur8c0zADKHUtunIin0Lr2HQaLOZVrgo8ym qyxffzETNpEpogu6SnlkOH3bE7z9Q+cLIW/rJ1DUgtTrmqMFtITB4PYLCSd+TBN0 taFGjWmvfhUWCPch1tTCR0O0SIwPhMBEPOZWI/Ogy7fadWlzBWTuqIpY1FeoSplq vV530BVGo81eMkSnK8gbNBJHlDWp5Zxh4jJQLkO0dhRnvcplQ1th5t3acXd2pDu7 eS8dDg3zNAKRXTbo5hwqYmTHV8Y1rAo1JxLgMFcjcWNmXjlooif1W7SDvNV6OZd1 3MqRJIMjTQ4ALjGnVcUZAc/bo3qMP9hlCBfWR4H/L71g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=uYrBKVuevx7f3xbnwrtGEFZjoarzhWnIli/d6T7aV dY=; b=CSxou/OKEa3Mt/g6DGgicw2xPRLpuLLmy9fYfxdK5MbU9XV0WHCaRPXAn JnQn6af25pHx941/jp3zvCMKnHwJ2GHNmdInp2BvPBg4Vz8tFr15xXYjb2rgyUXx oyyl4SnQOUWokJGr4joT84m86DKsM7YLqcgMDY853W4AEJfm4m5HYER76IyEUhph wq9BytfwUaXMWS9E/yqS9Es/EkTxyZP0yqubsSHm5Yp91bG+ofcBIU4TQRmX/k6E 0PB+Nw9mVNv6VEYvigTnTOOj45wk+erPHjOfD5VtWBNmQn0WGdKJ0rQs4v8EjT/B Vkq/V/lu/mQQHXoge1fKcCGauQJEg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedruddtuddgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfgjfhfogggtgfesthejtddtredtvdenucfhrhhomhepffgrnhhi vghlucfuhhgrhhgrfhcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvgeqne cuggftrfgrthhtvghrnheptdfhfeeftdffieeuheduvedthedtgeeljeejfeeuueegvddt ueevvddvtefhteetnecuffhomhgrihhnpehmghgrkedrshhonecukfhppeejledrudekvd drjeefrdefvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg X-ME-Proxy: Received: from tarpaulin.shahaf.local2 (bzq-79-182-73-32.red.bezeqint.net [79.182.73.32]) by mail.messagingengine.com (Postfix) with ESMTPA id CFAB23060067; Sun, 16 Aug 2020 10:09:50 -0400 (EDT) Received: from tarpaulin.shahaf.local2 (localhost [IPv6:::1]) by tarpaulin.shahaf.local2 (Postfix) with ESMTP id 4BTzZh1T8Gz19d; Sun, 16 Aug 2020 14:09:48 +0000 (UTC) Date: Sun, 16 Aug 2020 14:09:46 +0000 From: Daniel Shahaf To: Shlomi Fish Cc: zsh-workers@zsh.org Subject: Re: "rpmbuild -tb [tab]" or "rpmbuild -ta [tab]" get stuck / do not complete even if there are tarballs in ./* Message-ID: <20200816140946.71036aba@tarpaulin.shahaf.local2> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Zsh-Org-Should-ARC-Sign: true X-Seq: 47323 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: Shlomi Fish wrote on Tue, 11 Aug 2020 16:57 +0300: > Hi all! Morning. > > ``` > shlomif[fcs]:$trunk/fc-solve/B$ pwd > /home/shlomif/progs/freecell/git/fc-solve/fc-solve/B > shlomif[fcs]:$trunk/fc-solve/B$ ls *.tar.* > fc-solve--board-gen--suits-swaps-reports.tar.xz > freecell-solver-6.0.1.tar.xz > freecell-solver-6.0.1.tar.gz > shlomif[fcs]:$trunk/fc-solve/B$ rpmbuild -tb f[tab] > ``` > > gets stuck. I am on mageia linux v8 with `zsh-5.8-1.mga8`. > So, it's the -t flag with "b" for an argument, so it'll enter the "build_t" state: 173 rpmbuild) 174 [[ -prefix -r ]] && pathopts[1]= 175 opts+=( $buildopts 176 '(-r -t)-b+[build mode (spec file)]:build stage:((p\:execute\ \%prep\ stage l\:do\ a\ list\ check c\:execute\ build\ stage i\:execute\ install\ stage b\:build\ a\ binary\ package a\:build\ binary\ and\ source\ packages s\:build\ source\ package\ only r\:build\ source\ package\ only\ -\ calculate\ build\ requires)):*:build:->build_b' 177 '(-b -t)-r+[build mode (source package)]:build stage:((p\:execute\ \%prep\ stage l\:do\ a\ list\ check c\:execute\ build\ stage i\:execute\ install\ stage b\:build\ a\ binary\ package a\:build\ binary\ and\ source\ packages s\:build\ source\ package\ only r\:build\ source\ package\ only\ -\ calculate\ build\ requires)):*:build:->build_b' 178 '(-b -r)-t+[build mode (tar file)]:build stage:((p\:execute\ \%prep\ stage l\:do\ a\ list\ check c\:execute\ build\ stage i\:execute\ install\ stage b\:build\ a\ binary\ package a\:build\ binary\ and\ source\ packages s\:build\ source\ package\ only r\:build\ source\ package\ only\ -\ calculate\ build\ requires)):*:build:->build_t' 179 --{rebuild,recompile}':*:source rpm file:->build_r' 180 ) 181 ;; Which will set $tmp: 283 build_t) tmp=( '*:tar file:_files -g "*.(#i)tar(.*|)(-.)"' ) ;| But then nothing reads $tmp. Does this help? [[[ diff --git a/Completion/Redhat/Command/_rpm b/Completion/Redhat/Command/_rpm index e3469245f..85292fa78 100644 --- a/Completion/Redhat/Command/_rpm +++ b/Completion/Redhat/Command/_rpm @@ -282,7 +282,7 @@ _rpm () { build_r) tmp=( '*:source package:_files -g "*.(#i)src.rpm(-.)"' ) ;| build_t) tmp=( '*:tar file:_files -g "*.(#i)tar(.*|)(-.)"' ) ;| build_?) - _arguments -s -C $buildopts $commonopts $pathopts \ + _arguments -s -C $buildopts $commonopts $pathopts "${tmp[@]}" \ ;; checksig) _arguments -s -C \!-K \ ]]] > One workaround is to prefix the line with "ls " and later remove it. > > Regards, > > -- Shlomi > > P.S: I'd suggest setting up a bug/issue tracker for zsh that tracks > non-resolved tickets. There are many FOSS, non-FOSS or hosted alternatives. It's been discussed before. tl;dr is that we require one with bidirectional email integration to preserve the existing workflow, but none has been proposed. Cheers, Daniel