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 23828 invoked from network); 17 Sep 2020 17:24:23 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Sep 2020 17:24:23 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1600363464; b=PS0k0v5IxlfODZOI85DqQWgfHgAJ0Q2fu73QJHPS6Npin2OK2WfMvhofvE/K8RXTMD/MZWW/ME 8ghIMWSS67lJzCEsg3OZYvHk+kL9bYpHJYopEQRIj7OwhAX1Ol6LRX8cyGEc/yyZWffOi0UUC8 4Hv3vO0fxEf8lG7lluSTczlDlCq7YjWwWeyqU4SeOcw1QOQpvTgFa9Ru+XCDAl/egm0GFrUMYM zP+OT4Y3wQa9UR5x1of2Kz/oozb4AIzPBPgcRDf52nzFbjfw7kAzjKA6prsvn3BZgNnOBXz6mu mDPJxOI0vl1ucNiIJ739Jt8Gn+vY7WadTGMK05mpb0JZ1w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (gate.utahime.jp) smtp.remote-ip=183.180.29.210; dkim=pass header.d=utahime.org header.s=maybe2019112701 header.a=rsa-sha256; dmarc=none header.from=utahime.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1600363464; bh=rM5mpQQTFPqIcvdnxgvzS1U25Nm2nRuYnUnC1tGgaVY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:From: Subject:To:Message-ID:Date:DKIM-Signature:DKIM-Signature; b=NUG0UWKMebZqybcUcjPeMwbc93JJ0Ukr2rCZMEKpc5XwZL7ab2wSBOSast9QtpYaCray1E0zOw HagyXKdOezp/WKjy+QUT2tPDHiHnNVqNYsUmsYpbgoGgktEDkgW0gY2uGMFDy7cNUAsRpBPeaH LdApl4rXGj141OX8wyjRWS6YxZEVtPyi9avv5R/+sN9JNiXtOYmL+DU4QdbRrCm6RNpjz0YByc oVtIiFbgXB0O0JOKMTAIz9TbMF6IyprLqSVu416FJDvbuZcJLSAdWfbtisvUc69K+8mX2XaLGp QtrgGgghpSJgx8PDCguZKW6yg0zVmVGJvSJ//PSKh0wVlg==; 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:From:Subject:To:Message-Id:Date: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=rM5mpQQTFPqIcvdnxgvzS1U25Nm2nRuYnUnC1tGgaVY=; b=sVxNMS0iJd3sumZQniB/atjQzl BbDvvz1hyDzPe8UkRP5628kHbilkT4icv7RzWsCj+uRgII6enHf9r1/Rd8MO5vg0XYZETlhxp1ilf C6MW8KXMksDEc7WP7n1r6J91kbAWjFGOCGTnBDV/Id0FpaX4cykHCAL2xtmJB7+yrs+SGqih6lfvF ph1jOzroJKwPEYyDEpLlWHE3iEwxpR5/NlXsTMANatFk2zuHnvOSdqt9e1sea9oHOKbIRp31hwe4A YdcWm5A3jXjSl7gahO0XVNsv61dgQkPIOnfkYtPkyFIQzqize3YUUGXAmDGIooJ+E4d3Jjf1BI+r6 0z9f0+hA==; Received: from authenticated user by zero.zsh.org with local id 1kIxdt-000ECu-Q5; Thu, 17 Sep 2020 17:24:21 +0000 Authentication-Results: zsh.org; iprev=pass (gate.utahime.jp) smtp.remote-ip=183.180.29.210; dkim=pass header.d=utahime.org header.s=maybe2019112701 header.a=rsa-sha256; dmarc=none header.from=utahime.org; arc=none Received: from gate.utahime.jp ([183.180.29.210]:27304) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1kIxdL-000Dpy-Uh; Thu, 17 Sep 2020 17:23:50 +0000 Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gate.utahime.jp (Postfix) with ESMTPS id 8006F2ADFD for ; Fri, 18 Sep 2020 02:23:43 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1600363423; bh=rM5mpQQTFPqIcvdnxgvzS1U25Nm2nRuYnUnC1tGgaVY=; h=Date:To:Subject:From; b=tTahDhXFhEZe71bNg1r2KXM7JVZ70Y2yk0pxmdQ8LMEc9FYrxg1N7LRAFKNOvyq2J epS/NKRhcRDqcFztyUlPkzcBwDg7WJh4Q8WUaSdNYm8mFgN0g8P2cfuyOYm8Ykn4/G Q3FRNyl27gMVltH4dqCl0fozA+aF7hj6GOAbMGXxNVdBaCZNywFIIhmHBmWmrGjTBR MAHMaGdSC+IzsVxCM/cfNj2kmuHRLEx8CUoAtEKqoo7NOTqoDDvH9wS8DyBmkzYm5B tQJd4q2HX1ZYKm5HKVLTYeNUn1sEFE7jStfgOiPDRop/9DMYmK09Cb9Rl6QG52NDPZ Y/oayCTUp+QjQ== Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id A36802DBAD; Fri, 18 Sep 2020 02:23:42 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.0 at eastasia.home.utahime.org Date: Fri, 18 Sep 2020 02:22:13 +0900 (JST) Message-Id: <20200918.022213.2164194227802931452.yasu@utahime.org> To: zsh-users@zsh.org Subject: Strange behavior about option completion of `git push` From: Yasuhiro KIMURA X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Seq: 26069 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: Hello, I use zsh 5.8 on some OSes (CentOS, Cygwin, Debian, FreeBSD, etc.) and found strange behavior about option completion of `git push`. At first let's type `git push --r` and hit TAB. Then it is completed as `git push --re`. Options of `git push` that start with `--r` are `--receive-pack`, `--recurse-submodules` and `--repo` and all of them start with `--re`. So it is reasonable that completion works as above. Next let's type `git push --f' and hit TAB. In this case options that start with `--f' are `--follow-tags`, `--force` and `--force-with-lease` and all of them start with `--fo`. So expected behavior is that it will be completed as `git push --fo`. But what really happens is that there is no change after TAB is hit. I checked definition of `_git-push` function in /usr/share/zsh/5.8/functions/Completion/Unix/_git but didn't find the source of the difference. Would someone please explain why such differnce happens? Best Regards. --- Yasuhiro KIMURA