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, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32119 invoked from network); 20 May 2022 10:15:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 May 2022 10:15:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653041740; b=r20JaT5hcXz2YphKBBSSgy9gv0IyH6ebeeiAe6PXhA4xFTrmXLifVUrqMpR3MUSIqaim5wDFU4 fHJFYzSqDCi2CVHpRKVwtmca6fAcyMso1TxPdvD8GfS1VaWPu/2VOHZSxxBCL7MdtLe1x/gcyT dCo5PicQelzO+vnJgOZUW1MeXQ6tsPQFdG4GW+JuFIJUzZLz0sSPAJG94d9WEFvZ5eZo9FJJ3S 68TtXG09JGL7jD7PB3qdVQPlyQUTcSYlAau3HoOVZBXC/r8kpu/W20/G1wxI34FkFWmSY9f+J2 vN+ULqrFsYe4lW6b2BgFg6OE21QBNAKOEcKfrS+qQad6yw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96; 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=1653041740; bh=1ofx/QpcmQvaZzSsdKknBisjOIYyQmbWCGZndAwtdmA=; 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=TFNwKj7wcj0NsC9m0RuLX58u/WOoY0LX4fWhVX3A7slQlbulGh6CmKGalKu4X7ZJPQgvO1i48o OE/betzC08tD3VuNcYFPxn7GjBgZfTIcv5GOapgcqqPD6JuUKS1nrEHGJSu6QlPjmxJvfkJ9Ga KIHghHxFNjlH1z6IsMsodmRxjuGu5INmnZbsh70Z19w9/QCQzTkpp5yTnFc6gMOO+g4l8agdu1 /RphJIn0pQcWF9BBksFWIEsYZYIEWNPw0q0HC0yy28l74Bh5uWypfCPtNBxMjG5c/Bv/MMk1PW ldeDplrfKbsHQHfCDi4y2N9dqADfTWZ5BdzZXWtTwmbTtw==; 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=CsWpyTpviANcwBNjibR23AtFL+FZKwqVE32liaEjIlQ=; b=iFXBdeyyzYYqUcQ2BoI3Getq6M HwSIt7U532eREIJGo493lCOUD+ssK2nr2dqab0pzAFPwvZdjQ5e2z+wWvyTnMWcCPW6EWLnRZY5+F OYZWndBe1duYD+qFoZkPeJkXg/2To2F5OPjtYO3O3Gscm5b8PhTapeZNx9LQJLT9lNIPNOMansCh8 TqAk+CMKyTeIaB9lfdVV90qQIp1FyopT0UpwCLpNWEu9E2tFmXWhzpId/j3hfk0QmRSnf2v3KVAS0 bbilhPmKLVatVJXGBf1YfrEb/vISU7+Us7Eh7p2pQyZO3SBO2juVlcFMpnUJBL3cWMvAqt4DBAM72 ZfsjJCXQ==; Received: from authenticated user by zero.zsh.org with local id 1nrzfY-000J7g-0u; Fri, 20 May 2022 10:15:40 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq1.tb.ukmail.iss.as9143.net ([212.54.57.96]:50082) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1nrzfH-000InM-8i; Fri, 20 May 2022 10:15:24 +0000 Received: from [212.54.57.80] (helo=smtp1.tb.ukmail.iss.as9143.net) by smtpq1.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1) (envelope-from ) id 1nrzfG-0007qy-Sy for zsh-workers@zsh.org; Fri, 20 May 2022 12:15:22 +0200 Received: from oxbe13.tb.ukmail.iss.as9143.net ([172.25.160.144]) by smtp1.tb.ukmail.iss.as9143.net with ESMTP id rzfGnxKvWVu5XrzfGnZEc8; Fri, 20 May 2022 12:15:22 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.144 X-CNFS-Analysis: v=2.4 cv=LNR1/ba9 c=1 sm=1 tr=0 ts=62876a3a cx=a_exe a=wuFMYA7voKp1dZz7Z+vj5Q==:117 a=I_Av47A-8eYA:10 a=IkcTkHD0fZMA:10 a=vinPr5In5y8A:10 a=i3_X4zI8AAAA:8 a=ZOV8yoMJL83oxt2QwB4A:9 a=QEXdDO2ut3YA:10 a=8oTDZq07e2cfE5SwPOkS: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=1653041722; bh=1ofx/QpcmQvaZzSsdKknBisjOIYyQmbWCGZndAwtdmA=; h=Date:From:To:In-Reply-To:References:Subject; b=2r29uEDqm1xPrDQSpBIHGHmHlOFtCFcnLYvHtoUw9jgE23eBTXM18+WedU4LxG3G2 FYvrpg89cYKiQe7iG3ti/3kcd4W+PFjUEXSUiZ7whEADGJgvFb44UFwBNWzO4nfFex KVYEF3U34V3oS3SWtcddtXD1OyN2RLA7u2fz7AQpTX+Pw6or+xLr8FotD78SP9UJNa QfUOJ6cRRSdTxWB7Yydsm2JnFOEP/hH9neYDDyclgfrg/tea5p5p+0XqouAONPT6RC Ps+fkoFzE7EeMc6Ym+m+GLrlZGU81ytHAVauiidL59ebmR/sK7cm2qBAuBCCo5dT1i ZiDWvQXDAemOg== Date: Fri, 20 May 2022 11:15:22 +0100 (BST) From: Peter Stephenson To: Stefan Radziuk , zsh-workers@zsh.org Message-ID: <200084252.242457.1653041722599@mail2.virginmedia.com> In-Reply-To: References: Subject: Re: Using the history expansion modifier 'a' results in excessive lstat calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev72 X-Originating-IP: 165.225.17.146 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfGJh6EGaHrO0JUEYcQy8I5gPRXELhA/MfhtGIML4OMKQEpWSu5dleM7tXug6qHwHg7u8/ZIGp2hk2FBOFkDnxipPovOJoj64PLEAX8GB3xp83AlemkWJ voaBPAEbQ+8sbEX837J2c8dJtKM57pPw6Eu14/tpPGsf6A5vDUh5Ung0DLLNkcJe94uSYtWwX7zFSyTChdeDv0GZWIRh/ZOfCp5fMo51MQbv+lPkoltPCA5T TJ0dF4p8RYRj+UefLL7dL5ED+4tLBPHmgYuiekL9V90= X-Seq: 50260 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 20 May 2022 at 11:08 Stefan Radziuk wrote: > I have looked through some threads in the mailing list to find out why > zgetdir > is being used over getcwd in the first place. It seems it was > implemented this way in the 1990s to work around a bug in some implementations > of getcwd, which should not be a concern on modern systems. > > I was wondering if zgetdir is still the right way to do this? Are there > use cases where it is preferred over getcwd? Maybe zgetcwd could simply > use getcwd primarily (i.e. not as fallback), or perhaps USE_GETCWD could > be enabled by default (currently it is only enabled on QNX builds). The best bet would probably be to try that by default once we're sure the release is out of the way --- as you say there's a good chance that's the right way to go now and I don't think we're going to find out the problems any other way. pws