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=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27570 invoked from network); 23 Nov 2020 04:12:57 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Nov 2020 04:12:57 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1606104777; b=AhGZjYaRswrC6lBGv4293C7w7epjeRm2dlhfpAxBjqTnZ7Mc8IfA6jbo5A58Ld6Bmz7rUc0Ije c/SiGDMDu1bjZrQnuWXvDOTE2nlj+kaaI8cmoEo8mxxix5KJ3IdME6adcJq+jtQuYOZF+btyUS evhVhJnlDOL/MmwMw91Qy37Smgb/3dIEXSEtuAvq0sDWLD0J3hh/YNdFUjz4fkI0FPbdbY0yG/ iMH80F+8jTxDOXoroVzcv79azkWOdepvRC+RUNhcmMz04MIM1aYMRJ8rSudoDiFZg3te/22xxl erHXR6Wb8k6hew5O3hudA45om7KfcKFmuWDcmS4oZ8wRcA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1606104777; bh=34+rNEuxyX5q6xQR3mhFdhxLlxN0hLJY0Fhkmp6zvxE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=hG7TEh5JjLTiCVOGz+MYMY5HKMzPDv5VTy+HxtljUl5g143pHmzGNxlgqUtjKYXFhKVybhSWDy nMOjd2XsnrFPN1cb/dGc3HYJz4JuFJxxk/48ugC3jKyrFbuVjE6omeA3dbCxZWFmYFUGv686vz hByJupHvFL5svUTwD0h5UYt9BvbEND+42iC4pgFzaMBITudPn5rINt6YTCCSgLSFvKyIm/po8C lt5f174JPkmQutojQhaKU4lQiEk085phMYds7h43Sy3TUjn/ElbHTCCeN9+96n0Kqwsh6HIlkb pgpmYLX/tjNk/p/dJ9275DhscioNCtXLq6dAnkCNYwVUhQ==; 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:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References: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=cu3FQCS3YuaUyRqdqJwec+O8w4gGsXiHENNpeOTacis=; b=hK7LlQlLKez67Pggh78+F456gk e8bXNKlLPtw7EdMh43dIIVSDr6gB53Vnw5G6Xm8ULqnrp0wy4rWcvEU1pxs39ggkuRlUZmZcV4tAL Eu0hl5juQ3OBcHbsB8j2yslCqKBgqtnc12l/SVJFREkX4aYoVrbtkwWIhsun/cx3dH4Wih1RjpoHI 4q5m2iu7eEsE7ZEI2nrjolaQs2zjqCA7TyDLo2cDOZ4rH1/PJ4YvH5rbp8EkWN8d4tWTE5DzrXUUh 4w3CSbU8TY4rgjAWc7fM+93fXiBUjJDJ60EE6P9/fCspidcV/WyKGsY7N5xvfo+/0/ia8HdS4v3xo UzgPCUGw==; Received: from authenticated user by zero.zsh.org with local id 1kh3Dl-000M7u-AH; Mon, 23 Nov 2020 04:12:57 +0000 Authentication-Results: zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out3-smtp.messagingengine.com ([66.111.4.27]:59767) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1kh3DX-000Ly3-JQ; Mon, 23 Nov 2020 04:12:44 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id F26CE5C0064; Sun, 22 Nov 2020 23:12:42 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 22 Nov 2020 23:12:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm1; bh=cu3FQCS3YuaUyRqdqJwec+O8w4gGsXiHENNpeOTa cis=; b=VR4F0IQjuNUb426WWFYO39TK6fEPNapTM36J6JoI8z5jpHV367ZGhtRp FsON/A0o9VU7UnuhRvCZ8f8f/Qwnk9WrLBAInC+zhu/91anQl6LlpJW2oCr5GUAz X8kraaPJ7CZa5BujbRksCMXCRKxIWnL0hNWOn80QEovsX+fZ7lKhKV5cvAXQ+IKZ 9wU00u95dHO0cUEsfIicw7bbfQi5WjjCMWyWf5K7Mto6GAf9KyiAu5phgGeHfU6S 5S3Uptsx3lhfniLbOgVh41EibGFyEresR41ybn8N7AaZuprNG17isn8wqazm3Nlm TJUH6xkLLEtx6PX6No7DgDxUEUopcg== 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=fm1; bh=cu3FQCS3YuaUyRqdqJwec+O8w4gGsXiHENNpeOTac is=; b=dGZuMmZN4jsVnFFdh9XybcJjk7MSa5vsZlzGKFXrqBC1VBTLKCRFgnrxv 1rl9+3Ax1k8OOp282lmQS49MUHXm2wkurvW+GJn6tB/oNiAcoSd9WGDRO0nDGX+6 qbm1dL9W/R2IVDqJDn1ENCjpOxeojhljL7fBFHhf3hvbSJu6qgVLItOreQNvMQ7Q JRoO6r5XjKzTZdfxHjXuAJMPynpmadtple8FmJ4qeZWPUbscULdH9DWIfed0YJ03 Mv16EYUqyYuOhStQ43IdK7J43u2XZGEb3NNwI4JRWHJuU9YhwBPza3yM5inj40sd 68KY+WRWxC0Jm7k0eYcHObMtTVI/w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeghedgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjfgesth ektddttderudenucfhrhhomhepffgrnhhivghlucfuhhgrhhgrfhcuoegurdhssegurghn ihgvlhdrshhhrghhrghfrdhnrghmvgeqnecuggftrfgrthhtvghrnhepgfelhedtffeuhf egueelfeffjeegtddtleehvddvueeihfevgfdvgffhvedvkeetnecukfhppeejledrudek tddrieekrddufeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Received: from tarpaulin.shahaf.local2 (bzq-79-180-68-135.red.bezeqint.net [79.180.68.135]) by mail.messagingengine.com (Postfix) with ESMTPA id 69FB03064AAA; Sun, 22 Nov 2020 23:12:42 -0500 (EST) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4CfYf06hk5z3kK; Mon, 23 Nov 2020 04:12:40 +0000 (UTC) Date: Mon, 23 Nov 2020 04:12:40 +0000 From: Daniel Shahaf To: Arusekk Cc: zsh-workers@zsh.org Subject: Re: [completion] GDB completion bug Message-ID: <20201123041240.GB31253@tarpaulin.shahaf.local2> References: <3f0884a6-18f8-4d0d-2bae-e9ac3f3636ba@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3f0884a6-18f8-4d0d-2bae-e9ac3f3636ba@o2.pl> User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 47600 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: Arusekk wrote on Sun, Nov 22, 2020 at 23:39:53 +0100: > _pids:shift:13: shift count must be <= $# > _pids:compadd:42: bad option: -m I can reproduce this. > I traced it down to most probably > /usr/share/zsh/5.8/functions/Completion/Unix/_gdb calling _pids, but I do > not know enough of zsh completion to investigate more. fned it and add «typeset -p w >/dev/tty» right before the call and you'll see that w=('' -h) at that point; then, the parameter expansion in the call to _pids isn't quoted and expands to an empty string, hence it's elided, causing the error. Unsure of the fix. Cheers, Daniel > Glad to have found a bug in such reliable software! > Arusekk > >