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=-2.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI,MISSING_HEADERS, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9176 invoked from network); 23 May 2022 12:27:19 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 May 2022 12:27:19 -0000 ARC-Seal: i=3; cv=fail; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653308839; b=BKeCIqcvMXd4HbERiHsfqeJCcFWAKWtBW7vjaO1h7rtZDCGKL8B/yftmMFg4SD429L87YFGy6d 8tM99jzOG1K8EiX0qRAXN92eTPHdL3AGNLVjlw+O9BA3NiCbSBm/dC/+DW7/+u1QAABlQihUoQ x7rXpBKJGFWbTT/jgPqXV8XZRShPHhrxNHOdG/Hu9saQ5k06+qWMsg2nw099czmse7vinNIgFC iLD2FOnj7TtbwGj7XLiIqg/+mBH3+ZJrj/c1H5En+sHxNw3RcjNaj5nBT1laB/A2fG1Bp9KKt0 qDN+SKwGjjUGJkvV/r1HRLjhQ0PR7Pai3bj2OVFtzN9JcA==; 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=1653308839; bh=FeAG9ZJ7QA+UALeHujph9l2h7ktV0Pr4eu81cvh3+os=; 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:Cc:From:DKIM-Signature:DKIM-Signature:DKIM-Signature: DKIM-Signature; b=W8nHN+e+YQc4c5xIWXK3F/JgVG1Y9JwPBZMpPuIveZ87QR07b/eKQrMH+obzCF+nuVp4/YZDEJ l9fTTm1ln//aH8Jl4Rch39CndTbJIitS8YSuCCk5OGM9fCJb5bRsfCorG/XdCUnzEjuG5oIeSq FqcSzSZsHXpK2QqNsjQRw1pogRYQ6XInmEv5YbD6GUb7S+UoR3JXSldwhPbOBtXWCSkDja4EMs vrAD/JihqNdYKwaAUsuqvAb1mbMWZyBv3azOaPxeWS290pN/Q95aLyWgGdxZa9jA+lI9BRJ4q4 xdrLjpBDWdrOGVT3d541fRaC/0xDvAKMffn347pCZW0MMA==; 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:CC:From:Reply-To:To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=GgQhW9ZPaHvT3D85Hq9Gh5GzzneOHu64evtjLzOd/xQ=; b=W1sBFfAEvd6G0XVZ9WMCnIa945 Buo7xQR5nN76Y7tcwKOS4FUA9OD9GBKDFLymznmTF4b+woijoZd5dyvxG5l/pZjlr73SyBrFhb9fN F+xnWquMd8uB+ITramUJ0c0HrrIlxk95n5C1ObjSxGvV8x4JJypgRHPhNmmTYKpjWdo3+kgD9zqfU gMh5QqQAE7bhydBg+tK+RLmBY8fgErHmcOH82Vp1qPK72p7z8k99Tn5VwdM+ryNbjvwTKwrtdIOQw nXUJ+SqMtMKbNs7BDDGQzBrLfi0uTL8tc75Q8RY8y8nAgxHRQdYCj1AcvS86+YDwr99btx21Lryol g1KqQsVQ==; Received: from authenticated user by zero.zsh.org with local id 1nt79Z-000O4e-Lf; Mon, 23 May 2022 12:27:17 +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]:37398) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1nt6IQ-000MYb-5a; Mon, 23 May 2022 11:32:23 +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 24NBRoAT018731 for ; Mon, 23 May 2022 07:32:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdtpartners.com; h=from : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=s1; bh=GgQhW9ZPaHvT3D85Hq9Gh5GzzneOHu64evtjLzOd/xQ=; b=rGU/7XK5cCqA6hSXsMTyJ8s50P8pYZGZIw8XprjNAL2Hc7zY0y7fGjLnShbFoxjVN0fb ASyVVhb0a5j/yRFYIREMEjtZeFg4l28gnaM0xaIutQeYs75zlpnqBgatM9MgZ7+wLPaV 445kIWZaJ9zVjA3m7aXyox0RnErvibzlVZzF1F2h9hB8kWLVmNFkpEK864CoHxl750OE UZraNe+2WJXCqofBaglQnNt6eYzAHXNvpsftmx1u5y5NDyDamqGnDz4N76Vrzue8f88I OYQrUomTJFA/IU5LMyNxQKuJFA9evbrbkwXZ/8HUq+8ofNg7egtLBKJu/lnEIf5ZexUB zg== Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam08lp2046.outbound.protection.outlook.com [104.47.73.46]) by mx0a-005bbf01.pphosted.com (PPS) with ESMTPS id 3g6ufu0nty-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 23 May 2022 07:32:13 -0400 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=fail; b=cyJWLLzUmyKeRnIN4QTqOeQRJe8y1icBBKfYGs99r4o9tD62+E0fyS6iT88adyCJoKQrOpHKVkvddEQKTH5yIFiRNP6c0UdjQKV4f1IJRrWHhSx0n3v8XpC9GAfFnBZw7b1cLPTi3vE7mC1JYO92NI5a/zt2pzQw65oTE66vzhfZTD6E2dQvz//B1tZviU20W32LpoFhE9uDk4TazxP+6RaNw7/kLHDgCOW5e5jF/cTBZ2zAZF1nqqMTZjltQdyYauMt8WYrvaSv6yMH3z8juPea0K5+3hzIP28+hOSC08xcUnXZj+/SADLdQLu0eboahfOQ0kkwCbNOQNR3Gv+ldw== 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=GgQhW9ZPaHvT3D85Hq9Gh5GzzneOHu64evtjLzOd/xQ=; b=cm02Ea9js4zrEJhhi9AgYW2eLN1YnDJ3H1fGQ6WxDWSTKl8t8ucdyqI89LHDXo7Lamu74hhUHOhXTHHC5UvlVYB5IfGicbp/aYMn6aOFiKxDlNIcpZ2WeO0uERBJE9s1Gupth2CdiZVBKl1BKJ93h4Di+sbrNxiWwWB0mqlolSlDo6uDj2aS7tHfq2qR4Uz8iFI5bVKhXebSabHtdK+1daJMruj8PzEz+MQ3cllbucgrnfwCQxSupgCQUaVJ18JXPx6devNeDZs5U0oP651aezproKKRTtuu9TpgXQLLC554FVlEz7R6fAi2sMpR5vtQ25MCmYzKIPS9xZj2bORDVg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=fail (sender ip is 199.20.13.32) smtp.rcpttodomain=zsh.org 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=GgQhW9ZPaHvT3D85Hq9Gh5GzzneOHu64evtjLzOd/xQ=; b=YNV4r+dOTr3A8bi27rqOX0WxAojBxe5kFJPAGP+Y/3TsJVMtQEnNOK0BhUdcjoiiMBup5o44yWpuKuf1ymZnfilsT6DPOLWpQ5q5QWYwjPlu7+mIWRcXIVHCbHKpR3RbM0mEg7C1VVluE/WIRPE6A+TxWsRCSPailaCuZyW9dHA= Received: from BN9PR03CA0528.namprd03.prod.outlook.com (2603:10b6:408:131::23) by DM6PR20MB2362.namprd20.prod.outlook.com (2603:10b6:5:1a1::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.23; Mon, 23 May 2022 11:32:10 +0000 Received: from BN8NAM12FT053.eop-nam12.prod.protection.outlook.com (2603:10b6:408:131:cafe::8d) by BN9PR03CA0528.outlook.office365.com (2603:10b6:408:131::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.16 via Frontend Transport; Mon, 23 May 2022 11:32:10 +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 BN8NAM12FT053.mail.protection.outlook.com (10.13.182.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5293.7 via Frontend Transport; Mon, 23 May 2022 11:32:10 +0000 Received: from camsx3.w.pdtpartners.com (10.250.24.157) 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; Mon, 23 May 2022 07:32:09 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.174) 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; Mon, 23 May 2022 07:32:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g6WxZ9Dkw2xJQg8Wedb2eynQ2R6A9mEBctMCuB60PFn5TxgdbOnH/e2DkpMCWfH0hC1N5igAiPKIc4+LTi6X0bkMJF1Dm6B7z+Lrr/ICXvAV26ilSsK3uSFAimSvGIgfDMzAyJTOcGBGROINB9Kq4VqR0WOGAKphm92iKVT1kbyBqlmXJ506CGPTgy0mWqvZPKXVJRlHEofGyYdkKNlkIzQVDFUkvzYlLp69jD8C6mbvbnd+lvgWbCsgpCHzlOUiK5Oq4m9eOayV8XfQO1k/zl3O82gdG34qw/wCGFZ7NaB+eJQXlW5vIySRJB3qw9yNeqcfhV5QhLjwWQOnuljZdQ== 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=JhGEYHaFblR6m+kTdP+m8osqOFTgbU5Y6ttpjvHsSbA=; b=Wg/yTbBiF4tR1kDH82+ei98PaaSWCnqkoSbIC4QWz128MXGW3w3JTQLcsPJq7biuO80SpmxEjFWTlyIxd6fdba9f95oag9BfhE38EVCF3gM4m1VHd5vAn9CBwpc5rrglZpQD0tOr1oRwrj5euUJHm+p+y9mbQOv50if6Yv5pjM2B5mFE9Iq5uixSn/nhAMajWKMg1bsq60Xom2fOhzFoEzPQeNfS32IGLTLqda1AocM8rk0O0SR8c2t6p2QnY/dZEFCPjujI9apMX/qZlL/77SmKu7uAmamqHtWk8vEfcX/JrdgKXhajy+ZZG/pFT8LxIpLMOeuOM+Hw58hHnJIQUA== 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=JhGEYHaFblR6m+kTdP+m8osqOFTgbU5Y6ttpjvHsSbA=; b=szvICMSPBV7ozuGgS3KJVCv2FzfEmgqKYGWaiC8RlXaE/q01kM3xXrs/T3v8bgY/BEvdOhvbvTs1+ifKi4diPkw0EjtHyspvLDBUUTjWHi4tDd5LCJI0x0nLpIiHqbVoaoIRb2kFAQ89tysVX+NvKflRzSnYBBY3wHM4pcfuAgw= Received: from CY5PR20MB4843.namprd20.prod.outlook.com (2603:10b6:930:24::12) by CO6PR20MB3620.namprd20.prod.outlook.com (2603:10b6:5:344::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.23; Mon, 23 May 2022 11:32:08 +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; Mon, 23 May 2022 11:32:08 +0000 From: Stefan Radziuk CC: "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/kRF40qfVUNFCmBzxq0nkhcAgATF5Ik= Date: Mon, 23 May 2022 11:32:08 +0000 Message-ID: References: In-Reply-To: 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: 29196ba4-b25f-40f6-7b16-08da3cafe02d x-ms-traffictypediagnostic: CO6PR20MB3620:EE_|BN8NAM12FT053:EE_|DM6PR20MB2362: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: cePhC1454RWckDPfLtm+857OVItca5pfDCDQGIXwT+ynMzh4AwEQZxVY2v6xgCx9ErdH5oqQuv80q5ziyMb2CH7ZuDJXi56bJo5KC3h82TDbY2lTnsgA46nu5pSRPb5OjnPhA2KZo9eO6pHK44jU5LrI9FptTAQwGZbhDRRd9maicCOBGwcuXRc+D4nH3P4SwhM6XeUb34qP1sgj+3eX2k91D8J0SS+nWptPjgpAlw24LAupxJVeXz5U5xLOeGFlZdz+JZ1Pu3KLZgEao8FLqn5J7YpKHoRNt9C3NoMuVAaMYvqJyzFyBT7QlNS4x3lkBd2HsQIl4zOP6kKsHKcuPZFJzSUhO/gSzKLAr6DGsPYX32CoQugnE6oawdbki5fe+VFxZ8H+xCNL+gSIsL533wQnh6KHBJLl/2WjH6XaROqT8ZnpkLU72Shbr0cFh68QxdwZ60v0MkeIxxl0ro84Zw3ZJ42KRntVedefWuocqvDaY9+YZ5QznzyH1oLlnghZAQduZQkSWOea9mxRq6wMveKXZ0IPxcflJK1dVKwZHZinyJsvIcGNf8to1lMKldUBd035+UMiOq3+htE5TXFsIe7guzbJE5BH78fLtaqEnuevCxGy2ZDKQDNxpxlnn6aCQo+dUlRNttwUuG5FgIY/xzQGqbq0w11BKaB8QSLbgi9K+xGF1259jQCZouLiVNCSiX1ZNNKe3x4nBkD2hpK3Pw== 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)(109986005)(66946007)(66556008)(66476007)(66446008)(64756008)(316002)(26005)(83380400001)(91956017)(8936002)(8676002)(4326008)(76116006)(5660300002)(52536014)(508600001)(33656002)(186003)(86362001)(9686003)(122000001)(2906002)(55016003)(7696005)(38100700002)(38070700005)(6506007)(53546011)(55236004);DIR:OUT;SFP:1102; Content-Type: multipart/alternative; boundary="_000_CY5PR20MB4843EC5749E9A95DD0A33CEBC1D49CY5PR20MB4843namp_" MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR20MB3620 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN8NAM12FT053.eop-nam12.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 8477fb85-3f03-4792-8349-08da3cafdf05 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HG49kQOLArXmSDxs7gALLt53FWKvV4KEyoDoZOOXwQTnbVuc8d2MsJVxLYY+cHf6hRIiueXR3rruaDQOd7VARveBhFAudnk9H1/bvOTW8w1deT8I78AA54+dP2orISwyNME+1rhdg1ylQWU2FLKGtaDf+2b+CAfBpjtfhLDta6tlF3OgjUxBr4nX9GaiWRd46SHXPL9i4QQS+FaxOK8DM2+lVPECRztJCtGRinLLgC1TVkudH0nyyMvE1mXP/5/JmtzFBMXcbAUaz6VBzTuH8xs5EF6jsqcYAVy8leC7OG8F4wFmsTOzbYUBLnj/hqeebrQ7k/W3n/hCa24IlkHKqK1txg/OHkzopmw8tekR1YN4IXzDOGrpY4fLDz54KOeOAg1P+qFvr+Nk7oQe7WsfVDSw2XYzYxeIYWtcXapsY9fOOqidRl4O4BCmBoqZoQMRQMWz8XkDjAq9Y0Gj+AszOWjeLiNWigJSog//19+Op6bSvI9GMkfvpeQ+uR+CO6543fIaVVgcNBwtjl50pIDpUi/d4XO/8a/0oD/vlJvt/nmZkPYABVi5WY3/h2HIx1AAUS2/owuTG3njUJft9ihM/5/35/1s9+m8X+BWkMYkePanUZOlIIp9cUquPn5PGb+DZC/WmkoGHsDxugRn+T7x9mMtC3cbwWGTofqs5vvt6qqMAH0jJs+QpLjg0zJaTw4a 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)(36840700001)(46966006)(186003)(336012)(86362001)(508600001)(55016003)(2906002)(26005)(7696005)(9686003)(6506007)(53546011)(81166007)(83380400001)(109986005)(47076005)(356005)(36860700001)(82310400005)(70586007)(70206006)(5660300002)(52536014)(316002)(33656002)(4326008)(8676002)(8936002)(36900700001);DIR:OUT;SFP:1102; X-OriginatorOrg: pdtpartners.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2022 11:32:10.3898 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 29196ba4-b25f-40f6-7b16-08da3cafe02d 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: BN8NAM12FT053.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR20MB2362 X-Proofpoint-ORIG-GUID: VOix2ZuH_9dG2_AO2Q_0yqB2ViqfvfMC X-Proofpoint-GUID: VOix2ZuH_9dG2_AO2Q_0yqB2ViqfvfMC 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-23_04,2022-05-23_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 clxscore=1015 impostorscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 priorityscore=1501 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205230062 X-Validation-by: larryv@zsh.org X-Seq: 50279 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_CY5PR20MB4843EC5749E9A95DD0A33CEBC1D49CY5PR20MB4843namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > Do you get the same results with :P ? :a and :A are not guaranteed to > result in a path leading to the same file (eg, symlink/../ will be > simply deleted without following the symlink etc) Yes, running with strace confirms that :a,A,P all exhibit the same lstattin= g behaviour (they all call zgetcwd). From: Mikael Magnusson Date: Friday, May 20, 2022 at 11:35 AM To: Stefan Radziuk Cc: zsh-workers@zsh.org Subject: (EXT) Re: Using the history expansion modifier 'a' results in exce= ssive lstat calls On 5/20/22, Stefan Radziuk wrote: > zsh uses zgetdir to evaluate ${FOO:a}. When in a directory in a different > filesystem to its parent, zgetdir will lstat many entries in the parent. > This leads to slowness, especially when some of the lstatted entries are = on > remote filesystems. > > > > This behaviour can be avoided by making zsh use getcwd instead (build zsh > with USE_GETCWD). Interestingly, getcwd will also be used in the regular = zsh > build if zgetdir fails (see the implementation of zgetcwd). > > > > 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 system= s. > > > > I was wondering if zgetdir is still the right way to do this? Are there u= se > 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). Do you get the same results with :P ? :a and :A are not guaranteed to result in a path leading to the same file (eg, symlink/../ will be simply deleted without following the symlink etc) -- Mikael Magnusson ________________________________ 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_CY5PR20MB4843EC5749E9A95DD0A33CEBC1D49CY5PR20MB4843namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

> Do you get the same results with :P ? :a and :A= are not guaranteed to
> result in a path leading to the same file (eg, symlink/../ will be
> simply deleted without following the symlink etc)

 

Yes, running with strace confirms that=  :a,A,P all exhibit the same lstatting behaviour (they al= l call zgetcwd= ).

 

 

From: Mikael Magnusson &l= t;mikachu@gmail.com>
Date: Friday, May 20, 2022 at 11:35 AM
To: Stefan Radziuk <sradziuk@pdtpartners.com>
Cc: zsh-workers@zsh.org <zsh-workers@zsh.org>
Subject: (EXT) Re: Using the history expansion modifier 'a' results = in excessive lstat calls

On 5/20/22, Stefan Radziuk <sradziuk@pdtpartners.= com> wrote:
> zsh uses zgetdir to evaluate ${FOO:a}. When in a directory in a differ= ent
> filesystem to its parent,  zgetdir will lstat many entries in the= parent.
> This leads to slowness, especially when some of the lstatted entries a= re on
> remote filesystems.
>
>
>
> This behaviour can be avoided by making zsh use getcwd instead (build = zsh
> with USE_GETCWD). Interestingly, getcwd will also be used in the regul= ar zsh
> build if zgetdir fails (see the implementation of zgetcwd).
>
>
>
> 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<= br> > implemented this way in the 1990s to work around a bug in some
> implementations of getcwd, which should not be a concern on modern sys= tems.
>
>
>
> I was wondering if zgetdir is still the right way to do this? Are ther= e use
> cases where it is preferred over getcwd? Maybe zgetcwd could simply us= e
> getcwd primarily (i.e. not as fallback), or perhaps USE_GETCWD could b= e
> enabled by default (currently it is only enabled on QNX builds).

Do you get the same results with :P ? :a and :A are not guaranteed to
result in a path leading to the same file (eg, symlink/../ will be
simply deleted without following the symlink etc)

--
Mikael Magnusson

=
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_CY5PR20MB4843EC5749E9A95DD0A33CEBC1D49CY5PR20MB4843namp_--