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,HTML_MESSAGE,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 5566 invoked from network); 25 May 2022 10:22:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 May 2022 10:22:48 -0000 ARC-Seal: i=3; cv=fail; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653474168; b=MQzAwuJifXZSgg53ClAWd7GEc9zu3woz956pDT0FluxtEG5+HUAFF9bRQUOi1uHzu2wJHMD6MP brExk85Jrbk/0QA2GrVfHn6FgTIoKv0aDhs6aNZCYHx8EZ2Hkp3LXInH+FGypDKDdPGgKCVFqo 3N/13i9aIr6HK+VpxouMlP9UepwqeVpokOCVTVLvEcwHXlB3VFGhaXbpYhqk+AQ/ZUn6DHTvXn Xw/gHB2N/iZ8BJCUNnz6hMqp3VpEWxisKPhky4xoRLlK8UabVlTq9+0gogKDD6uQodtySjtxK4 ymGekZKXkgAEgJv0ujfItaKCSd+EoGT5vFqiuqTiQeGXOg==; ARC-Authentication-Results: i=3; zsh.org; iprev=pass (mx0a-005bbf01.pphosted.com) smtp.remote-ip=205.220.165.232; dkim=pass header.d=pdtpartners.com header.s=s1 header.a=rsa-sha256; dkim=pass header.d=pdtpartners.com header.s=selector1 header.a=rsa-sha256; dkim=fail (body hash mismatch; body probably modified in transit) header.d=pdtpartners.com header.s=selector1 header.a=rsa-sha256; dmarc=pass header.from=pdtpartners.com; arc=fail (i=2 (cv)) ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1653474168; bh=cs0U3wyZO1qrlH7SOYIS6pJgOmaVYppWavu5dR8J7MQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:MIME-Version:Content-Type:In-Reply-To:References:Message-ID: Date:Subject:To:From:DKIM-Signature:DKIM-Signature:DKIM-Signature: DKIM-Signature; b=Z9Kh2ELqg/CnN/lVX/aQX/SF73bLDV08lGcCwCjoxfN6XWwe1Lzjq0MqKdbrpuV6HMa2ekmszu zbhzjc5D9a1FfAhtAXdP5vwJLbE+M8/tZNBcsanM/wptWH9DtURSR1p2tTIER2LPaooSJW4yar E+PprLNjkmGMn7H/nq9i/6Vhl4TIpHrb+SvATE0/78lz0GHQLQh4NK2dnsmypXiAhus2V30VJI o7mEYOyJ0om6BcJw+bX3KpuK02uo+pGAa9KeIppnBeZuci43u75Wk09Hc39gBKeaJw3fvlroJB VfL13DZIlk0gtmoV5LIjIU2bstRcnvf2rLbVpOIvv52tWg==; 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:MIME-Version:Content-Type:In-Reply-To :References:Message-ID:Date:Subject:To:From:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=/Kj4uxO+Yuq8ZjjQabe1u4UnumNUwOxurBlkiRN7880=; b=ozkaQTNjHtysXk0jsd3yY6p0j8 4u6pqIdwu7JW9xuLbWwKR91lR+lgdQAcaYvUOdDS7en+awKAS2EkSv7BdWWAvl+zJVfrClwgs5p7q VUe4hUb1SYDNOW+RH0ZWcOJBH27sFdNw1aVqFV/XUt2rnIe201qvsTCKSCuvlJpGhTcQ/IpXSnDQX Vor0Mo24MHh+cX4Zv1UfELeIfrEefUTI6m7g5WCB+391Z51by3xxI4o6Mxcq/0hTWMI+VZm4H7NoA 1uZkZU/VRxernKnKs7RiqydfZThK1N9PcnbjiTZE2WtnUOeV/lx5Mc6U4jx/9v6XGzHHVb6koqYoi tY6+QQFQ==; Received: from authenticated user by zero.zsh.org with local id 1ntoAB-0004vu-Q3; Wed, 25 May 2022 10:22:47 +0000 Authentication-Results: zsh.org; iprev=pass (mx0a-005bbf01.pphosted.com) smtp.remote-ip=205.220.165.232; dkim=pass header.d=pdtpartners.com header.s=s1 header.a=rsa-sha256; dkim=pass header.d=pdtpartners.com header.s=selector1 header.a=rsa-sha256; dkim=fail (body hash mismatch; body probably modified in transit) header.d=pdtpartners.com header.s=selector1 header.a=rsa-sha256; dmarc=pass header.from=pdtpartners.com; arc=fail (i=2 (cv)) Received: from mx0a-005bbf01.pphosted.com ([205.220.165.232]:9164) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1nto9r-0004bR-I3; Wed, 25 May 2022 10:22:29 +0000 Received: from pps.filterd (m0221009.ppops.net [127.0.0.1]) by mx0a-005bbf01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24P9us0V029438; Wed, 25 May 2022 06:22:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdtpartners.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=s1; bh=/Kj4uxO+Yuq8ZjjQabe1u4UnumNUwOxurBlkiRN7880=; b=3qsMW6cgEOx74++9gQNyvyy+zYTToVWwLlqVFgwGlDcLBGG4X6rjwaEpCRvvYEyBRgf2 3gxQwBDiHUfaKo+4lSabTT+1oMcKqGeAPXgo9jiQrX4FIYwct7EiweLmZRuGtn/ywNvm v1bi04hjdOC+xVTBMBo4H5uImrDz1l4+DXL/Te9brNilMbC4IoBqKcap9iY2L2I0er0v 3+OeeUmoQtm7BMx/WnP/jLj//WG2YUHbfqn3WgcAQM+81qxvPa7U3zHURtADXV9MLpR5 LuZnxfvuHggZZQ5whyz1N4SDIH/aTzx6f383Opojiuu7oy/Cm2mgRhiNewrLQETYC1AH Wg== Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2171.outbound.protection.outlook.com [104.47.58.171]) by mx0a-005bbf01.pphosted.com (PPS) with ESMTPS id 3g93ucr9fp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 25 May 2022 06:22:18 -0400 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=fail; b=cDlGbTYDk5oHesCvrb4+SM88W46Gie/rIzBVKSLQR+PHNpHgSR7ONSqMAFdkJQ0eZnNnlAgbQk5yTLFzAfb3lvu+6iTCOBzmkzyy3y+GsKfKc+RPm1DELrhtpuGybRd1aGLUbSxArTvUVQtFAa8Cjf14H5aUud3uHgBwCpBn8lOD3FRxXSQBEgGKprmyaswU9QTxqE4ZoD9QGUaQzEYEAdqhq3jFDcEzcfC53uk9khR839GLlrn8OvQcKNxFQIfp/0LaiTST3eAFtwOTRc93ujfYJo1ejBu1NGJYZVOMEzEUMXzWodZ2OciYLXyJMUxRlFD87wPqvkCJEuZ92nyUmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/Kj4uxO+Yuq8ZjjQabe1u4UnumNUwOxurBlkiRN7880=; b=UXwNyVUUAVQa+kve3rNGbqr6jynJgRXX02ZvlcO6QMypHJjBRb6AvKbMpMONBbxYb+O9spy5/MdeAsiCNz1LLxbkVPoEQL+VYB0e/EXz+WZc4u8mYTpOwqJo78hlubh76UUg6R16jeGW4h3Jlsec3wOhumly9Zewqojl4vuqAABNSjfEjNKE+mlFqpkNaq5Lq39A5Q52AA7KHQEYClNm1KzFdZYVkILo7N25Cz0Izkq/9PonxFDCLxqJbyshoxvk2+yBxU+r95CgkderKuNASvb1Vkmwh7vOYBU/a1lrwK22DA2uEUwOvhSB93Wq746Unc7g5GM/G5gO/lL2LeaiPA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=fail (sender ip is 199.20.13.32) smtp.rcpttodomain=ntlworld.com smtp.mailfrom=pdtpartners.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=pdtpartners.com; dkim=fail (body hash did not verify) header.d=pdtpartners.com; arc=fail (47) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdtpartners.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/Kj4uxO+Yuq8ZjjQabe1u4UnumNUwOxurBlkiRN7880=; b=H6fY+BLpMiCnOVDhLjofx/e4m6BFFxUOjw6zlTMy+mXC0BPCM//UFqek5Z3zH5beypgitK5oomBOOAdWmWT9L9PdVzO7/lfF1xE/XKIcPIUdEF/B5LXBvy20DH1MjrMDo8bN9zQJwJ39wsgvKBPML+SbUvinonjsnK0YaY//FvU= Received: from BN0PR04CA0077.namprd04.prod.outlook.com (2603:10b6:408:ea::22) by MWHPR20MB1552.namprd20.prod.outlook.com (2603:10b6:300:12e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13; Wed, 25 May 2022 10:22:15 +0000 Received: from BN8NAM12FT009.eop-nam12.prod.protection.outlook.com (2603:10b6:408:ea:cafe::99) by BN0PR04CA0077.outlook.office365.com (2603:10b6:408:ea::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.16 via Frontend Transport; Wed, 25 May 2022 10:22:14 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 199.20.13.32) smtp.mailfrom=pdtpartners.com; dkim=fail (body hash did not verify) header.d=pdtpartners.com;dmarc=fail action=none header.from=pdtpartners.com; Received-SPF: Fail (protection.outlook.com: domain of pdtpartners.com does not designate 199.20.13.32 as permitted sender) receiver=protection.outlook.com; client-ip=199.20.13.32; helo=mail.pdtpartners.com; Received: from mail.pdtpartners.com (199.20.13.32) by BN8NAM12FT009.mail.protection.outlook.com (10.13.182.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5293.7 via Frontend Transport; Wed, 25 May 2022 10:22:14 +0000 Received: from CAMSX1.w.pdtpartners.com (10.250.24.25) by camsx3.w.pdtpartners.com (10.250.24.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2242.12; Wed, 25 May 2022 06:22:05 -0400 Received: from camsx3.w.pdtpartners.com (10.250.24.157) by CAMSX1.w.pdtpartners.com (10.250.24.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Wed, 25 May 2022 06:22:05 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.170) by camsx3.w.pdtpartners.com (10.250.24.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Wed, 25 May 2022 06:22:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EL09167rg22+1MJS8UwCalMNiXadyPhs2qV4wRQDAWBeahAW13o+tmEwKp8UZJD+hPgY1XWhbpmwFo7eHYu1jNZCAKlGomrjYp7pmwS4NFyH/5X8p2rLOrzdxrBThRVCn7jaMk5nB0DgJkQRPJpmW98VDQ+vDKtxsOyeLYwkwoi0isLS6pOKD15I7CJGuo+PQi4UzXd9esJnRx4AHzKJRscmtkU2IuDVqjR1l6KWX5xdEMbc+0E90g9Xvgl/k1PGZQ4f/Sm4UVGu4huum/ziIH6GNjaZtTQmMVEwMIQdWpzksjjy04Gb8LgLWIF/1Grn/vriRrda/kUkOIyhzMqcDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GYvKwZOixaW/6D2fC1Ul7PtUcQLGClWh92i+CCU9PWU=; b=lNSNy/kB7dQIhYO4CO917Ikm1zF2cq0cGzAtnGd/q4uaPj6nI1VxwyqfHuWNhwFvjIxnVxSpqml6ikyGXpqgs37fv942G8EAJLFEVhoWDK6/ERSkyMFawXmXvo2ne9D4Qjnab70mjN/3oMVevflk86Cdyhu4/E/eH5Zm5cCHFTd2za0GIUX3xOSEr+/EsPZ+DBiMPUPIASZ3jw6atcERc/VruuIilILSVsKXxU25PorF33ZlueI2Qa9KTTs1xpqCXGs5E+9dUbtZUwDYEjyJO1OOoEC5eHFtVXJV4X0DG19WrgmVR95mBUJVsawXlxtOG9TGJIUITOsRIOPIVJQG1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=pdtpartners.com; dmarc=pass action=none header.from=pdtpartners.com; dkim=pass header.d=pdtpartners.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdtpartners.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GYvKwZOixaW/6D2fC1Ul7PtUcQLGClWh92i+CCU9PWU=; b=ZJL8SIIeR/l57twZ+vzd1Zv3guW0cm0AW1mIIlOJxF4czJUq6Z4/x6z2jJ15AmHttgNGFbkzWnxirvKQ/QYP9s5xgUzfku0fPtahmXqFj0c8GHhngBtMeRXn7S4TTSHGxoV9AXytJkBPTSwbO+921DOBd3A7U+PpEikrSZD9N10= Received: from CY5PR20MB4843.namprd20.prod.outlook.com (2603:10b6:930:24::12) by SN1PR20MB2205.namprd20.prod.outlook.com (2603:10b6:802:28::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13; Wed, 25 May 2022 10:22:00 +0000 Received: from CY5PR20MB4843.namprd20.prod.outlook.com ([fe80::68be:b08f:4026:4d47]) by CY5PR20MB4843.namprd20.prod.outlook.com ([fe80::68be:b08f:4026:4d47%3]) with mapi id 15.20.5273.023; Wed, 25 May 2022 10:22:00 +0000 From: Stefan Radziuk To: Peter Stephenson , "zsh-workers@zsh.org" Subject: Re: (EXT) Re: Using the history expansion modifier 'a' results in excessive lstat calls Thread-Topic: (EXT) Re: Using the history expansion modifier 'a' results in excessive lstat calls Thread-Index: AQHYbDEPYF0J/kRF40qfVUNFCmBzxq0njKUAgAfVbwCAAAaZRg== Date: Wed, 25 May 2022 10:22:00 +0000 Message-ID: References: <200084252.242457.1653041722599@mail2.virginmedia.com> <1126442111.366927.1653472386462@mail2.virginmedia.com> In-Reply-To: <1126442111.366927.1653472386462@mail2.virginmedia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=pdtpartners.com; X-MS-Office365-Filtering-Correlation-Id: c75ba9cf-739c-4e77-597b-08da3e387012 x-ms-traffictypediagnostic: SN1PR20MB2205:EE_|BN8NAM12FT009:EE_|MWHPR20MB1552:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: wu8JburJ0dc4SlA8VBg437JoBDmmpOFh7Z94UfyzcCK2wa8Blsn9gaQ0xHUq5eeoxpMMT0OlQ1eepoapd0i5dybKjBdXvqulG/jPQpN6WSLDi1YrRwM6Q1ndyi9hoB3tg2wKyl0Urrq+l/MaJ9ZF3rQmmwrfECROTw64+4q63RBlYSqhcxle6lUMEbgmaa09ksznCdymJYsbtgHjNKgFgzVREmd4zR3edTdGM/EKmPK20LLRDIAnVglGmv0SoNZ2QNoEd5Fp1AAWLwM++ge4sRYVp6KNRdYwnbf/57aBWdmrga773BVcRQ5Bl5gzs4xgzGc0Z29/KMDEJtJoij2gigSpzdV1xrohOWL2tUItICh/WbYGJhVQrm6Ij3jRgadw59nlfyEtwwsWL1zrCwT7WE70kNMtxyLQJXbUTAA8tiKVDOBLctNCwGoirFRvQCvjmqyJjMoi3sLkWeCmyYnIMfgPiWgYecvS0rC/ovfOOv2evpEXWXWqU70I3xqG5kI+K+EKGYm8O/RZ7OqGEsevQuuJBen4J+J2PXIIpNSsz0zncMG4DULnkC/yx0LKleZyPj8kM8zAXDf6ln/fvEZzXwd5HUOKauvxywC7Pio8HfEWp5k4mlfSwtuIDmekHY5Y4XPdQ4/dIyaozLAWMqFjU5qtnEuA4fYjCZiHTPC4hLPfVtdviyfy12WfV2F6E8tSRxbbEXk00xeDGiusIfyoXg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY5PR20MB4843.namprd20.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(71200400001)(186003)(38070700005)(110136005)(55236004)(53546011)(55016003)(9686003)(26005)(7696005)(6506007)(122000001)(508600001)(316002)(8936002)(2906002)(91956017)(66556008)(66946007)(64756008)(66446008)(66476007)(86362001)(52536014)(5660300002)(76116006)(33656002)(83380400001)(8676002)(38100700002);DIR:OUT;SFP:1102; Content-Type: multipart/alternative; boundary="_000_CY5PR20MB48430CAFBC351054B40CAC2AC1D69CY5PR20MB4843namp_" MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR20MB2205 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN8NAM12FT009.eop-nam12.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b410afa9-7bb4-4f54-5569-08da3e3867ab X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gTlGrJpprrMH+pBFY9pCO9gLAHXoyyrJnKIlNl6SjnACWQPjeXdsnd5OUc6Jgz88C6y96u3oiqvre5qe7eZIauSfj/tPFOENVoUvyTyVCnI12mzrOu4KKRj9v2vzOinx/9mAHKE/4Ro6vnV761xfrxQEiLZ7VeRCJ1DLSZyXCsgti3W/1ebyl1ySWthRnUZBZzshoxjo27JpJW/klqB4Bc9NpGBYrQn6pTLqURViM182X77o55ky4+kbl1RBOiJjzP0r5kSYdUshntjClR3Fr90TLpvYLzXlXmE7e1birDzO0u41SjJiQJAPixjWxxPP9WtZYOMn3NMzIfKo8M3eGj1oieaDKukA5hHSXPWNl+ljut1cEBUfEss/cd2J5ukuogieyeXodPQqxsKuapk/0JsnJhPUNKNZCVSaIPDaVov+D5MAdwmz/26m4dQGQW03vAvCgRGw4JGbkQihxzQGFG3TNHILW88u3I/ojaYD1dSneIsAk9nTUre9VKtR3xpdo9koIly0mxuoXVZMU5Uoq3blT68mzTsvLfqEtLNy4w7lx2oa0+VGpLAIL2LRigLNBy/ojOuflZSWl1VZBQCZBr21g/4OvgYWOy4KAFFNMP6z1vjUFsFn8dEyx1ko1aSdsejoD+8iCUP8BjjSjfSFGdguv/ZYCFGHa2MGTHpE2Jq3ns5i/eS6n4f2SXS+HMe2 X-Forefront-Antispam-Report: CIP:199.20.13.32;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:mail.pdtpartners.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230001)(4636009)(46966006)(36840700001)(316002)(86362001)(110136005)(26005)(36860700001)(5660300002)(9686003)(508600001)(8936002)(52536014)(55016003)(82310400005)(47076005)(83380400001)(70206006)(356005)(186003)(8676002)(2906002)(70586007)(336012)(7696005)(33656002)(6506007)(81166007)(53546011)(36900700001);DIR:OUT;SFP:1102; X-OriginatorOrg: pdtpartners.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2022 10:22:14.5375 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c75ba9cf-739c-4e77-597b-08da3e387012 X-MS-Exchange-CrossTenant-Id: 17f8a405-aa9b-46a2-9dad-10862de90a7e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=17f8a405-aa9b-46a2-9dad-10862de90a7e;Ip=[199.20.13.32];Helo=[mail.pdtpartners.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM12FT009.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR20MB1552 X-Proofpoint-GUID: ksxnin16pIx5y_plSsXWMK-uBOYNNKLk X-Proofpoint-ORIG-GUID: ksxnin16pIx5y_plSsXWMK-uBOYNNKLk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-25_03,2022-05-25_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 impostorscore=0 adultscore=0 clxscore=1011 lowpriorityscore=0 mlxlogscore=999 bulkscore=0 priorityscore=1501 malwarescore=0 mlxscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2205250050 X-Seq: 50288 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: --_000_CY5PR20MB48430CAFBC351054B40CAC2AC1D69CY5PR20MB4843namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > Will it be worth seeing what effects the following has? This resolves the issue for me -- verified with strace. Thanks. From: Peter Stephenson Date: Wednesday, May 25, 2022 at 10:53 AM To: Stefan Radziuk , zsh-workers@zsh.org Subject: (EXT) Re: Using the history expansion modifier 'a' results in exce= ssive lstat calls > On 20 May 2022 at 11:15 Peter Stephenson wr= ote: > 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 implemen= tations > > 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 coul= d > > 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 problem= s > any other way. Will it be worth seeing what effects the following has? pws diff --git a/configure.ac b/configure.ac index c72148d06..77e381f50 100644 --- a/configure.ac +++ b/configure.ac @@ -2021,11 +2021,15 @@ if test x$zsh_cv_sys_superroot =3D xyes; then fi 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. AC_CACHE_CHECK(whether we should use the native getcwd, zsh_cv_use_getcwd, [case "${host_cpu}-${host_vendor}-${host_os}" in - *QNX*) zsh_cv_use_getcwd=3Dyes ;; - *) zsh_cv_use_getcwd=3Dno ;; + *NOMATCH*) zsh_cv_use_getcwd=3Dno ;; + *) zsh_cv_use_getcwd=3Dyes ;; esac]) AH_TEMPLATE([USE_GETCWD], [Define to 1 if you need to use the native getcwd.]) ________________________________ This communication is intended only for the addressee(s), may contain confi= dential, privileged or proprietary information, and may be protected by US = and other laws. Your acceptance of this communication constitutes your agre= ement to keep confidential all the confidential information contained in th= is communication, as well as any information derived by you from the confid= ential information contained in this communication. We do not waive any con= fidentiality by misdelivery. If you receive this communication in error, any use, dissemination, printin= g or copying is strictly prohibited; please destroy all electronic and pape= r copies and notify the sender immediately. Nothing in this email is intend= ed to constitute (1) investment or trading advice or recommendations or any= advertisement or (2) a solicitation of an investment in any jurisdiction i= n which such a solicitation would be unlawful. Please note that PDT Partners UK, LLP, including its affiliates, reserves t= he right to intercept, archive, monitor and review all communications to an= d from its network. --_000_CY5PR20MB48430CAFBC351054B40CAC2AC1D69CY5PR20MB4843namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

> Will it be wor= th seeing what effects the following has?

 

This resolves the i= ssue for me -- verified with strace. Thanks.

 

From: Peter Stephenson &l= t;p.w.stephenson@ntlworld.com>
Date: Wednesday, May 25, 2022 at 10:53 AM
To: Stefan Radziuk <sradziuk@pdtpartners.com>, zsh-workers@zsh= .org <zsh-workers@zsh.org>
Subject: (EXT) Re: Using the history expansion modifier 'a' results = in excessive lstat calls

> On 20 May 2022= at 11:15 Peter Stephenson <p.w.stephenson@ntlworld.com> wrote:
> On 20 May 2022 at 11:08 Stefan Radziuk <sradziuk@pdtpartners.com>= ; wrote:
> > I have looked through some threads in the mailing list to find ou= t why
> > zgetdir > is being used over getcwd in the first place. It see= ms it was
> > implemented this way in the 1990s to work around a bug in some im= plementations
> > 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_GETCW= D 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 prob= lems
> any other way.

Will it be worth seeing what effects the following has?

pws

diff --git a/configure.ac b/configure.ac
index c72148d06..77e381f50 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2021,11 +2021,15 @@ if test x$zsh_cv_sys_superroot =3D xyes; then  fi
 
 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 for= ced
+dnl not to match.
 AC_CACHE_CHECK(whether we should use the native getcwd,
 zsh_cv_use_getcwd,
 [case "${host_cpu}-${host_vendor}-${host_os}" in
-    *QNX*) zsh_cv_use_getcwd=3Dyes ;;
-    *) zsh_cv_use_getcwd=3Dno ;;
+    *NOMATCH*) zsh_cv_use_getcwd=3Dno ;;
+    *) zsh_cv_use_getcwd=3Dyes ;;
  esac])
 AH_TEMPLATE([USE_GETCWD],
 [Define to 1 if you need to use the native getcwd.])

=
This communication is intended only for the addressee(s), may contain confi= dential, privileged or proprietary information, and may be protected by US = and other laws. Your acceptance of this communication constitutes your agre= ement to keep confidential all the confidential information contained in this communication, as well as any i= nformation derived by you from the confidential information contained in th= is communication. We do not waive any confidentiality by misdelivery.  = ;
 
If you receive this communication in error, any use, dissemination, printin= g or copying is strictly prohibited; please destroy all electronic and pape= r copies and notify the sender immediately. Nothing in this email is intend= ed to constitute (1) investment or trading advice or recommendations or any advertisement or (2) a solicit= ation of an investment in any jurisdiction in which such a solicitation wou= ld be unlawful.  
 
Please note that PDT Partners UK, LLP, including its affiliates, reserves t= he right to intercept, archive, monitor and review all communications to an= d from its network.
--_000_CY5PR20MB48430CAFBC351054B40CAC2AC1D69CY5PR20MB4843namp_--