From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id BD2802478D for ; Tue, 13 Feb 2024 11:48:46 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1707821326; b=QliC4XGxRSmVWJohKff4fz/zRCBr7tThjFBXZXRiTV76RkX/Uou8WiboC9VxTerj/d4WRc/J6e QyF4m1mz+224efNCKliFxh5o7vu5kG5BDo3E/cxUAiYk3sHqL2v24palvYCufauRGfGKOZvokA wt2naleeYIOP2ZaKtbxQlwxLzzzsXsw7Wp8xMMfvBh/9jTPMT30NFA/H9BlKJGbtxU8+c3Hp5A 1J+BaKDAe8dgFUQo7NXUfngyYFrM+jcXyRIbCjAbetdivQr61Wm3I1XRAr8A8LobM57sDLU4YU 6yQFmFMv+4y2i1Gkq6chC6gWZ+CPB3IB3zis7XYK6spXhQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (csmtpq1-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.35; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1707821326; bh=nkqyKWua9AJjEfS4CVyfoQxhkSIBI1lVxtr79OFpqE8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=aFZaB4Ulkn37PnAlV2NHZ/ykjcGRDjxDG+Aea8hDmpvQPuVRmRzk+cAKEb9te7n4TGBeNT2Juo LcqD+3jnErYXqmve8BVzHrtpPswTt6ZxS/hlOzzX02HAjvZIKE2/53N8iUgZ9ONuAjSQRYDysR iuTw8qlrxiFPyvtUwPO5QdHe9oj87Aa6CzG94Alw1IHMuvrjK/NdJGeUDuCCw5FChOd9XkN5CI Nj+8Lu72aBwb8xbbZPqa7rE931Rc2yx52S4VGWQMczZaQSCkPph8Scl5Fo20X7qkFBdycovLzm FGjj8AQ/NJTtu4XjdWC4h7Ml1LOSdCf1gQNzTm4JM5liEQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=9/MmtmeHY/dOiIlvc+bLzDFmwHmhVd6qJ2DaBAZ6du8=; b=GfaLuHtqIQ5YXuVv48y0pjWjQb ed3kwfLEwk/45VTNfLv6TAn+a+4l+hFbZtlXhed5TOxjLQFxpMVoQO4xu9gu6edZpR+LqTmzRuj8V mI+x1cgqorjspqbeWCF62fbIZXKyDtJQ2qzPTK+bYGdFvsLoCiIGl03L7R3iXDUsO3cpQ2+EzvIQj sxQySPg3YiUR2IJ9yVXMluVfoyIb8t87iw5FWU3EPRY62+MdPeLI6Dg59t9cLCLW17v3msO72+2c1 uUBN04oEoFmqdBWI91yjFNHo/JKJrNafPjzvVr8DB1hrcDDwEQvPU+7dxqvdoLMDLkyOZpgYR9zFp rFk4hhBA==; Received: by zero.zsh.org with local id 1rZqLF-0000TJ-Uf; Tue, 13 Feb 2024 10:48:45 +0000 Authentication-Results: zsh.org; iprev=pass (csmtpq1-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.35; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from csmtpq1-prd-nl1-vmo.edge.unified.services ([84.116.50.35]:36035) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rZqKd-00008l-2X; Tue, 13 Feb 2024 10:48:08 +0000 Received: from oxsmtp4-prd-nl1-vmo.nl1.unified.services ([100.107.83.44]) by csmtpq1-prd-nl1-vmo.edge.unified.services with esmtp (Exim 4.93) (envelope-from ) id 1rZqKb-003MnR-Nd for zsh-workers@zsh.org; Tue, 13 Feb 2024 11:48:05 +0100 Received: from oxbe12-prd-nl1-vmo.nl1.unified.services ([100.107.83.147]) by oxsmtp4-prd-nl1-vmo.nl1.unified.services with ESMTP id ZqKbrCFAG2RyUZqKbrH6sj; Tue, 13 Feb 2024 11:48:05 +0100 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 100.107.83.147 X-CNFS-Analysis: v=2.4 cv=IpgYcq/g c=1 sm=1 tr=0 ts=65cb48e5 cx=a_exe a=nQV8R8XsE+H6w0tExZVU5w==:117 a=IvlwODmuRu4A:10 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=kKG6OGoiCvDwedvJKq0A:9 a=QEXdDO2ut3YA:10 a=HbQOABYz3jhqdZF7JfnK:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1707821285; bh=nkqyKWua9AJjEfS4CVyfoQxhkSIBI1lVxtr79OFpqE8=; h=Date:From:To:In-Reply-To:References:Subject; b=1xcZHoAE48n4jNiTiEqE4FU28sqrqopxL2NFjXeZO/BTw71s3Sa/abN0iI5aM48vn MiFtioLN8At4HlAomQEQCJWv5TuloCMtCuozc74WMVl5HzFbwuSC5GabVZ7EmJkcWH E6nEw0SDSiAuSe1kfL3EnF5iDTQS94XMl/VZaGcyI//i8pOlvjhEGjZEYNn1o/gWct v6BRPJNp2/ZDV8SLSLuhUzzDJMDT7+zTRQ69LA31wC15aheFpTm7aryQQt6zKtrSQA TQUhf1XuIfY2h6JrvwgUqxLChtlN2YU8xpoG2zqnKgvcLP3Jh/hTqDt/6X1S6xcqjs 1MWxcJuV6XWTA== Date: Tue, 13 Feb 2024 10:48:05 +0000 (GMT) From: Peter Stephenson To: Ajeet D'Souza <98ajeet@gmail.com>, zsh-workers@zsh.org Message-ID: <1755424970.3965716.1707821285662@mail.virginmedia.com> In-Reply-To: References: Subject: Re: command cd doesn't work on some builds of zsh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer X-Originating-IP: 147.161.224.196 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfH2K1uorUeI/gNa38znBRITgsCFLS86MTwtCF19jUEt4x6EYDpV2Q3Qp50z3ih9VfyQ1uB6sBgkl66l2dCYFMADbysyZoAS8UWdzLwKE6e9GHA82TUG9 ofLz+5OdNaaWQmdjPE16aL4N5Wc1iBcA+G8b8/X5kxZQMb3gp9gU0jzeUkIxMMQET2XiQ3tJxSSAimNXWfg1KZZ4xz5dqEqhn/q6iUqZw8JQjnPEgIar+RET setVOZJSpusxgo3Vwp4RYD599e00XfnuXuCAPKF04wQ= X-Seq: 52538 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: > On 13/02/2024 09:54 GMT Ajeet D'Souza <98ajeet@gmail.com> wrote: >=20 >=20 > Hi, I found inconsistent=C2=A0behaviour of the command builtin in some bu= ilds on zsh. >=20 > On Fedora 39: > $ zsh --version > zsh 5.9 (x86_64-redhat-linux-gnu) > $ zsh -c 'command cd' >=20 > On Debian 10: > $ zsh --version > zsh 5.9 (x86_64-unknown-linux-gnu) > $ zsh -c 'command cd' > zsh:1: command not found: cd >=20 > According to the manual, command cd should work: > > Run command with args suppressing the normal shell function lookup. Onl= y builtin commands or commands found in the PATH are executed. >=20 > Any idea why different builds on zsh produce different outcomes here? It's likely to be a difference in the setting of the POSIX_BUILTINS option between the two cases. By default, with it off, "command" doesn't apply to builtins --- you'd need to use "builtin cd" in vanilla zsh to ensure it was running the builtin command. With POSIX_BUILTINS set it'll find cd. pws