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 26354 invoked from network); 26 May 2022 08:35:55 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 May 2022 08:35:55 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653554156; b=Fm+K4e6fCAQAtTLgdFx99wrc5rhTsJOfHwv77LCm4NDJAwcrfDAo18Kb7ZW0d9P2MOQcPhg1wz MnbH58jR/FWoBLW2VRQz5L78GnQgNLcZdWPbthcL4uEQyWTsVHPKePETC1KoPh5xyZmbQQf3bP aO3rW0YkPBLk5OqeudMqmwo23U94oJgj6AzLN5ETpickjqDSzP0gCVM4dZs3q3PHdEBiQRVE5k Z8gdO4FQA9n1Apq/1s7PusMXNeXGBPJV49V8LxqmZSKcQ2p1NfprY7rEzQGVWz+2cHSaKEwt+a FPz8qUP/zgGUS7409s8zkMGFRCfTjkN140BdkXsPu27lBQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; 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=1653554156; bh=z7U+/88BZ68W21iBUuH+sqdEsMYpYStw6VGisPeOeF8=; 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=Wg0XFOpjaeEr1hZN7DkY38AK99nXpuprB1VcGomYsO62KNAgvkHgGspdcT/fQ1E3n/2MTrjSVZ MsRgCCGUUB2ingTxFcSx4SgBcHhyiy8SmMcd44I0aSOgDrD1PpUPPw81JCUF3LQ/J6XlHA0fEF RCuTnnERmW1Any38y1w4pd8DQ3EfRxZ4eipL7aTGZ+KQBLM9EeHHBboN3WVzFzjdM52ZrAMlY/ c65rUc+O0IOUNWDzhO3jFxvQ1pjbBqaS3Od1ruN5s2BXyRt8VRSqa/lc3QfnZXnzQqAFPdJ/46 K8ttQThHDM0DU+HbGVnR6bCkimAIWR+riF8D6qdkrcOx4Q==; 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=p4Cppy2Y1Lu/nzzz36tbtMdj9utoMRDxkfVBRsATHkI=; b=eNZ3k4MPfjp+9jcX6Y7ZpfRWKM ELg1zGLcqXW26UCFrSm/N2R6treHCGVkLd4G6r7Gw4m+lahMWXCyMeWRO7imgEtYs0+VAjqiFU+lo nvmh+3YMMG7dYmFWU4taicR5wuj/cc1j76BhlX3gxicVezQczUIKO3J6PDvQkTxsEve1ivJoreg5s /8fpbmFJM3HlRKQ4cDw+s+qNNEdZg7YY28uP8+QDGPxB81Iz1eDLr72/cqq4gWcvrY3X56GJFddME Cwn2yi8FxSSUCwHUL9pfpNGsSW/czJbf40n0xxjrKo65E6wI6u1fYwm4FIthVoI2C+cIHs+Apenzn cWDStLvg==; Received: from authenticated user by zero.zsh.org with local id 1nu8yI-000Dlo-0b; Thu, 26 May 2022 08:35:54 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:58556) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1nu8xi-000DR9-7x; Thu, 26 May 2022 08:35:19 +0000 Received: from [212.54.57.80] (helo=smtp1.tb.ukmail.iss.as9143.net) by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1) (envelope-from ) id 1nu8xh-0005lX-Lv for zsh-workers@zsh.org; Thu, 26 May 2022 10:35:17 +0200 Received: from oxbe13.tb.ukmail.iss.as9143.net ([172.25.160.144]) by smtp1.tb.ukmail.iss.as9143.net with ESMTP id u8xhn6cPjVu5Xu8xhnj3o4; Thu, 26 May 2022 10:35:17 +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=628f3bc5 cx=a_exe a=wuFMYA7voKp1dZz7Z+vj5Q==:117 a=wbvTLvLwOfMA:10 a=IkcTkHD0fZMA:10 a=7H6ixmLU1AQA:10 a=NLZqzBF-AAAA:8 a=i3_X4zI8AAAA:8 a=A7odjVar95NruOl06-gA:9 a=QEXdDO2ut3YA:10 a=wW_WBVUImv98JQXhvVPZ:22 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=1653554117; bh=z7U+/88BZ68W21iBUuH+sqdEsMYpYStw6VGisPeOeF8=; h=Date:From:To:In-Reply-To:References:Subject; b=l0/23eR+wtqXUAFMZXQY/OIli4wNDbdyEyPVJXU5gyMb2CJomxnXokMa0AKKKrB4B enphErt4GmFwj0iymBiU6NOetiPSQ9PZogt3tK53sTN66foqnaY7qZ3G/Nykez/Oco HFFWdEaDqgUiDn2cqqphqezjfJMzEYUEd6PqyBm3YEnCMbnGlWT84iPwSIz+257bm7 ENd7JTThexEhaCZrH0AUpFAEVyrLiXNupysBHxJ61tuHGalB65Try3ZBoTt6rORPTE n8ZzjA6V31ljleabgFWKeJo66x4yZQVIhQLNJ5YqLf4Xs1qF98ygoCBFYxkIBAkqCJ Pf4m7F9uH/LqA== Date: Thu, 26 May 2022 09:35:17 +0100 (BST) From: Peter Stephenson To: zsh-workers@zsh.org Message-ID: <617849366.397219.1653554117384@mail2.virginmedia.com> In-Reply-To: <1468290738.368523.1653474795097@mail2.virginmedia.com> References: <200084252.242457.1653041722599@mail2.virginmedia.com> <1126442111.366927.1653472386462@mail2.virginmedia.com> <1468290738.368523.1653474795097@mail2.virginmedia.com> Subject: Re: (EXT) 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: 147.161.167.85 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfCGInqrcX6XuVPEHIUUgcwGG0fz1L8i4F5tvdz3aaetkvuSPPXfLRIqly81OtISmcmTuLYjKzCP/iIFkoHoNUPQ0uz6uLBVKDTFv9/wl2gJBSi22SxTP XwMBExVEU8/Yn0XH5JEkwJcZ8T6hPBqwRjSFImGsQrp8aKp+6OeuHbipmteCZ2WABFNpTRkqcSjalGG36oLXKTR2KsGddoKVk0xIYiz42lCqW3+6mR1wpZWV X-Seq: 50290 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 25 May 2022 at 11:33 Peter Stephenson wrote: > > On 25 May 2022 at 11:22 Stefan Radziuk wrote: > > > Will it be worth seeing what effects the following has? > > > > This resolves the issue for me -- verified with strace. Thanks. > > > > dnl CHECK FOR SYSTEMS REQUIRING GETCWD > > +dnl This is now turned on by default, as we expect modern getcwd > > +dnl implementations to work correctly. Any exceptions should be added > > +dnl to the first case. Currently there are none, hence it is forced > > +dnl not to match. > > Unless anyone has strong views, I'll commit this --- hoping at the most > we'll be look at edge effects on older or rarer systems which we're not > going to track down any other way. Not hearing comments, so this is committed. Workers with such systems are advised to keep watch for any oddities (very likely edge cases) in getting the current directory. pws