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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21388 invoked from network); 22 Nov 2020 22:39:19 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Nov 2020 22:39:19 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1606084759; b=f7/2Rhd6CGUpPJsxmedD8xjLIhFJZYMKjWQo0ZxeEG0MMisLFnXXB5istDAANosiohy5WwKYrr bZICR7VRCQyn70JpDYtv84lajW5ReFcNct/AhUlCCo/vF8S91MBQN3NHKLGQLDNDe6Hh0uh3d0 BE5ct0RqATvoj6y2dV6mgom9jIDhajd9M0sFbhsawGTD5iliH3aQc4Ng5vA5xME3WZlo4wnE2t hN0GGnnd8yUv6sxkBizAs4yUrAqt0NRheWy+aN3notOS2f7quBz96nasMVSDzNo/wVmDeFy3so sl6kFZv5gMiA/54Q2rmXszRaRJZLCFY2+PlLZhK+mMPJuQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mx-out.tlen.pl) smtp.remote-ip=193.222.135.158; dkim=pass header.d=o2.pl header.s=1024a header.a=rsa-sha256; dmarc=pass header.from=o2.pl; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1606084759; bh=EdzFV+o1HqSjg6JhQ/eAnjOjFFXBqJ7p7QrXpcUaaMU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:Subject:From:To:DKIM-Signature:DKIM-Signature; b=Ul1mIGpQ00c8BbB3bNZW6q56WqHkJmw7caKsfZz1o+DW4Rcr26Wi1Z4awUYnz1oneK7lB4QnRs wdZI9PUrwDiGydWdgyBCpHSKWD9JIvINriWp7gEtdTgmxfCejQ2GxiQqGSNmMExP1iuDxSDpMQ /y2ybDYeX+T4Wj5HO6dKbpeDTyB+Gk+dZqmsQyBVqqAVt+5n3qFXgm3dFUFagZh+A8cTldJqdi TQNlw1nI2ApSPhxGPZqyRaZ+ccTJWtwsWPHheByWwAUV5nJ6FtFxT2u/szNxrabYVmXl5SshtP /dEc2uFtIz5lA/vUfAvoE02gptIM9uaYfzijuxmR1CTRDA==; 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:Date:Message-ID:Subject:From:To:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=VWasJ/31uyD4iuxODPxMsUVCAxGrr1Y5FH6KsXYvFlE=; b=ImlUaIFb8By4UaZ2sJFpLoRCP6 XjzKakPiVXPsUbKYtC5A14qXFP1qQoJ6CRY+4YN7z7htyYv60ncXf9yu6YcNumvFH5qvAMI/bTZ/g e3S3SKSA/+8aWLUwTU/PemK6RERqMRIJAtOwOyWqrRC5JTZz1+Rqs7EatiTu5M+8PJjdyHkw7rdpk tJE+WK7l2GU1Lg4zHoSg7LRjfCWxt+WPYzPKTztUXKmKP9986REbChLAwX5hDC77ekrogjnNNwwng v+x0Rxq4ZAasVupfATIvJtNT50/RVJk3adr0ILrygilNRDHXlLA8PwomNA4lt7+iuqJguZ+IYlezb 4t1S4UEg==; Received: from authenticated user by zero.zsh.org with local id 1kgy0p-000Cir-Cl; Sun, 22 Nov 2020 22:39:15 +0000 Authentication-Results: zsh.org; iprev=pass (mx-out.tlen.pl) smtp.remote-ip=193.222.135.158; dkim=pass header.d=o2.pl header.s=1024a header.a=rsa-sha256; dmarc=pass header.from=o2.pl; arc=none Received: from mx-out.tlen.pl ([193.222.135.158]:16985) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1kgy0Z-000CZl-6F; Sun, 22 Nov 2020 22:39:00 +0000 Received: (wp-smtpd smtp.tlen.pl 20424 invoked from network); 22 Nov 2020 23:38:57 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1606084737; bh=VWasJ/31uyD4iuxODPxMsUVCAxGrr1Y5FH6KsXYvFlE=; h=To:From:Subject; b=VhM9hg+nIbBjCzMamdDifsWDPv5zXWDD1Vn6y+H+JxlWALVNCC+4/PfdSaDJheExo KaQSFB2Fjx6jsswrT+KiJFLgWn27jIqroYFg8qetFdqIzG8R9a9AtldR5v5KuBVXcD dRcSwgFLCqAn66JLv+IePjZakPMzFw1xc/Dry1vc= Received: from 89-64-61-39.dynamic.chello.pl (HELO [192.168.0.94]) (arek_koz@o2.pl@[89.64.61.39]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 22 Nov 2020 23:38:57 +0100 To: zsh-workers@zsh.org From: Arusekk Subject: [completion] GDB completion bug Message-ID: <3f0884a6-18f8-4d0d-2bae-e9ac3f3636ba@o2.pl> Date: Sun, 22 Nov 2020 23:39:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: pl-PL X-WP-MailID: 39f85e929e3568e9b3423cbbd645464c X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000001 [YcKw] X-Seq: 47596 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: Hello! This is my first time with zsh development, so I hope I will not miss anything. I am using zsh 5.8 shipped with Gentoo, no patches. I use oh-my-zsh with plugins=(tig gitfast colored-man-pages colorize command-not-found cp dirhistory autojump sudo fast-syntax-highlighting zsh-autosuggestions) and ZSH_THEME="powerlevel10k/powerlevel10k" and no further customisations, but I hope this is irrelevant, just activates the completion functions. The bug is not critical in any way, but just happens in the following setting: zsh-5.8% gdb (cursor here) -h Then it is enough to hit Tab. The -h can be any other option, or even a file name, not really important, but there has to be space before cursor, and after it (I guess so). This is the error message: _pids:shift:13: shift count must be <= $# _pids:compadd:42: bad option: -m 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. Glad to have found a bug in such reliable software! Arusekk