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 A9C29206BF for ; Tue, 13 Feb 2024 13:02:40 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1707825760; b=bj/gazqLI+IeD2+/EOug4t703A695UF0wV3jwmVT29EhAAIf3mjpWR2cMn6/n8yP/7jtP/dAD7 88Rmq8bSTKSnMjeWiQmmcDpvOqkLmhQeIfRUGjrD2E+S9vqJQnV8OlH3JU18MeYOAOW2/jw1Rk zz9xwH6l9SrdZM8BSLhpYOj+3EN0PodWQWEGuq5Bi1jh94PjkZ4qskeiQ4CTkaCbcYMGSPenRH MK1anh9/S2gkSQ9NQkdICn6N44eqpV+Hnjf69Y5UfMBtmbaODaNAy0bMWNxnjanHLwaFr7Zc8y tA3iMpd/LZlh/PFm3TxVqQEts2BcK2+uic11w/vWir58fA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (csmtpq2-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.37; 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=1707825760; bh=JgoU+7RMNoryZXRgpkdVMkAP+80IOsfQWXAq1hJSwf4=; 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=TqEenAn8QnoEQcbR7hMzxthEezHytoQhIbXYwdTyk9TmbBh4nUQ+ktw+o7XAzVOA147KpE3xEQ b0q2ACMFFDcg8LxoA3fCTgAoVjvlQKw9pZ5blqgtcK51KguY1uj9vIN+ScvghKdUK3INkmueYk AjbQBTztYak1yNjAm8l1N9bdAt9zqwotOAkR6hzvfoQ9dz9iU2YKPNDAJgt22JBEZD9BheLDVe eqYryz2r9ZA1YIAxWMBWxLiq/xACS+Pq7sijDKravaJc47bnlcWe4lnNWdcvrc/xE/MIU0ZzIA qo66xUYyB2Px5dYDdMLf+NgTOPFEirSnW+oYFsJFVmIOwQ==; 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=LNBmq2rtsfq3dZzV3NcH9dGKGsqHlxo40mTvZjUgwHI=; b=hl0h3EJNxUrVD40ULFufTwXVcC 6ERTbkKum/iaK/7uyAND1UMzpr4y1wsrGi62vIX+SptgmBtzLJVh2XmM571KZfBqct1apYsKvpCfX iuX1lUxTPwhB+xR+dojwAfwPN1yRo5UvKVFunUbGWqXphQ7tHvrCCw6PfMLJgA7qaU+LdntYxtEfc +Pded15HGyivD3XbP97ejt50IW2+4PNQmPKvPcsOyoACr4qhKfO+FaYHd9Du/hRU8Su0RttlPZXZz HbAsXUcz1TTa4kqOhGddJGiSYhwC4Vwd+0dmxxDGx4xkMIS6GvjM/2vi6prcXFZXq/uINNA0Z6uY7 op8TbIzg==; Received: by zero.zsh.org with local id 1rZrUm-0003ND-0d; Tue, 13 Feb 2024 12:02:40 +0000 Authentication-Results: zsh.org; iprev=pass (csmtpq2-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.37; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from csmtpq2-prd-nl1-vmo.edge.unified.services ([84.116.50.37]:1987) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rZrUW-00032e-0A; Tue, 13 Feb 2024 12:02:25 +0000 Received: from oxsmtp1-prd-nl1-vmo.nl1.unified.services ([100.107.83.138]) by csmtpq2-prd-nl1-vmo.edge.unified.services with esmtp (Exim 4.93) (envelope-from ) id 1rZrUU-007YuD-Ub for zsh-workers@zsh.org; Tue, 13 Feb 2024 13:02:22 +0100 Received: from oxbe12-prd-nl1-vmo.nl1.unified.services ([100.107.83.147]) by oxsmtp1-prd-nl1-vmo.nl1.unified.services with ESMTP id ZrUUrDEqoAJLeZrUUrzzYi; Tue, 13 Feb 2024 13:02:22 +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=Y9r+sAeN c=1 sm=1 tr=0 ts=65cb5a4e cx=a_exe a=nQV8R8XsE+H6w0tExZVU5w==:117 a=IvlwODmuRu4A:10 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=YXB33GbXtsE-u-sFU_4A: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=1707825742; bh=JgoU+7RMNoryZXRgpkdVMkAP+80IOsfQWXAq1hJSwf4=; h=Date:From:To:In-Reply-To:References:Subject; b=RgUdzcpV3XUjThZiEfdZ+tgqBtDfZPGj4WBu3y0WsD8/i5YdE233LnN16Nj6/eryl eznxTIGzfUW8i2E7PcFdjhhLLSJ9CHDxtfGDDTI46JzFYXJopmnEf3vMDjIhK+xtzR 6TWvIuvNOJSq87bPM5LO73raG5OsQ4D7FPPr/XYIj6B20fks8WdNF7toKHcYDtYDZf PLmglkajCT7kiWiH4ShXhy2OHW14aaGBXq4LkCr62IbB9p/k7tDzfm1P1HQEMUXb8G 2xcBG2hEXvb+/1uybF/d5qyYSb6vWTzVs1wBSivoH1ivtXzLPNDq718V40E+MVn80Z zHHB5Tgn+phng== Date: Tue, 13 Feb 2024 12:02:22 +0000 (GMT) From: Peter Stephenson To: Ajeet D'Souza <98ajeet@gmail.com>, zsh-workers@zsh.org Message-ID: <814844550.3971658.1707825742843@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: MS4xfHpxtJQdsFd9lfPxfIvbRMjVl8g/+dpSIr6HkXrsYEwVAHft/4U+8G85ib2nD9ICbAIs1xfEqhsMR/mApZJmBviqd5aPuKPtnDfOXEskMjOoHf8dFu+U yvBLaLFb/UvPonchOuukXognbtjoT9p4kTCgzkbUhjppfq/p5IHwqpR5I1yh2lCIoUqiZ2tj5Qcp5KeGP/2h+4oPyhSftgwjVRm1LKpMMtfVEF3AmH44kFum jnzagBcSRgmiYOSvTH99Irkh1Tgk5ZrqAPhUdODX7XU= X-Seq: 52540 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 11:48 GMT Ajeet D'Souza <98ajeet@gmail.com> wrote: > Also, since the manpage mentions that=C2=A0command=C2=A0is supposed to in= voke > shell builtins, why does this command fail > without=C2=A0POSIX_BUILTINS=C2=A0being=C2=A0set? Is cd not considered a b= uiltin > otherwise? No, builtins are *only* invoked by "command" when POSIX_BUILTIN is set. (As I said, native zsh uses "builtin", not "command", for restricting to builtins.) The manual page is clear about this: command [ -pvV ] simple command The simple command argument is taken as an external command instead of a function or builtin and is executed. If the POSIX_BUILTINS option is set, builtins will also be executed but certain special properties of them are suppressed. The -p flag causes a default path to be searched instead of that in $path. With the -v flag, command is similar to whence and with -V, it is equivalent to whence -v. In your case the zsh "builtin" command is more useful, because as you note you quite definitely don't want to execute the external command "cd". pws