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 31212 invoked from network); 20 May 2022 10:08:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 May 2022 10:08:48 -0000 ARC-Seal: i=3; cv=fail; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653041328; b=PFdfXFeuBggucqwK6IG40laQ/ob4eO07JvXwybU3dmCMLsfF2iJDjOz6JyqGGCqAoUz7jmkj3N /6JlqAspvO3PPAhXjLDAqCHDSH+joxnq2Rw4U0HWvQg4TKkegOwhJfDw4FZvsbcuqgR8cEkLFO mKbERAkjqRErrBfuXxTGuh6cMH7xFGawqJi1w6jL3uwBBhzovsIj5OHmpuLwHkVR7f+5KxbrgL XDcMzCllEKa2/ChWQDtx8stImF37sUr06glObuc25+FgjnDHLEztcfuPTZJDaA6YEnayahhwAe HbbWzOgGC9BSlVVOuAP8hMddVPkkKKaIHGRfXZB4AuuxHw==; 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=1653041328; bh=Ig78q7gRx5xr9dK9i6mtz2Z9yAIs8K4sdxrmI6r9q7E=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:MIME-Version:Content-Type:Message-ID:Date:Subject:To:From: DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=QojR4c1ui4LDD2OwRLw1cvvhJ2a5rlJvpMMebbCGRkElZOp1sXqjmdFMigqyoSWdx6TIwtakep ILZtW0FQYtXN8RCqyFNv/f9aE0VU2g2fUvB7qd5LSJQMaPB8I2bLSDcveREe+41VHjhPMVTwyz cPHQ0i8OL9VwMQro2nfhPFcWUPCOzImXR8WMdjnljbuEWxI7NkJXhJwBHQ1FK5rnB2r0zG1L7W 875EJ1ueLNZBUTl3KsJhGlWaPRouUmnStv6Ov9B3KtqX5lt3ZCuzCIuxTrE484bcnt7T4OVahF h1m7JBX7blnQo1r41hfobWMBz/Ii2rN23pNGuLlcSvjgXw==; 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: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:In-Reply-To:References; bh=no7odjjTpUEYEibVaw6lUEjE4gNcZXmxYaVyCHx1DW4=; b=Hvdbwra5X/0KrHipv7R2O2a5wA 0m3tTiIi+P/os1m5kGDZWKgr7jdJYLltTuZvs3AU/CcjRloi3nMFXVUgkMwdNV/uElIvecX7esuBq QnPnaUMGg5dWzSNYKqkXWOv1ZH+obHeEHORahDV9kt9ulKVj7kmq+IhxifpNPZT9I481jMLDK7BOd 5BCa85SH3H8KHBBkmqOZ47vaaMzVNoL1s7oJa6Hv3n1DAog19FExCkgUyb2EqqExK127QI5iX3XQ3 VuEUsEJ1BHWg1oodf9MIQqc8LwI+o6PoAdK3xMuUbk/e54K/Ny5jXgqUbJeI6YL/rigMIh0rNZZtV 0ZbmHlmg==; Received: from authenticated user by zero.zsh.org with local id 1nrzYt-000IND-Mn; Fri, 20 May 2022 10:08: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]:32222) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1nrzYJ-000I26-Gu; Fri, 20 May 2022 10:08:12 +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 24KA5oBe024202 for ; Fri, 20 May 2022 06:08:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdtpartners.com; h=from : to : subject : date : message-id : content-type : mime-version; s=s1; bh=no7odjjTpUEYEibVaw6lUEjE4gNcZXmxYaVyCHx1DW4=; b=ozFyfSEefzgBlu5+eFOp66OxTrmyxyUGB8+YycOOUtdsWkqAKmIyubbYE1LvdBpMF/3i GEhACiKBbstdXJHPrJLy3aoaoEI6zxC8zcO4ymtcBsFq5jlS3/GwgrXU9285oZikl/cA lZNh1Gd1rRQIyPO42oFPwWqTcJhzBce+8aIlBp5xhBUb/n9dj580zglHOxBi74favjwS 0QaHaAo12ymAPIkjp6zxXSfZ/BDOfr+aLfuX94pmDJ4UBaZe24K/Sz9kvOyQLB8cBga/ 23UppLxljhsbjBXaNW8aZ5cP2E9nR3aimxRZuoyijlzNv3MIFZYnvX8tdu4xryCo5KEm 9A== Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2170.outbound.protection.outlook.com [104.47.55.170]) by mx0a-005bbf01.pphosted.com (PPS) with ESMTPS id 3g5cx6rhfh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 20 May 2022 06:08:08 -0400 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=fail; b=kSbrRvdGXFP2zJQj9KfF6v0NyMn0/7qipKnlgvJfxgEZ/Nn7CQfB4LjpV68g/OwI5K3eN1U5/siPhdN3qhdtGRzLuHXKV/3M+pGl0Z86p0ASBx1+Odb8ciz+PosuwgxDDNnk9xoXhCEg5GbgbdIEjL6IKaGKjaFaUxLFERqxzxL6Zmzo2oQBYmgOy+9wUuo5xA4m7NHUfjHhdVH4qgK9E/0pwKYbQ4vM8hKcpevHvE4EqtJ04fdUysZbFuJRbxXulPP5zUW6COXeCy7Vov7ONsNEu2Ct+/P/8xSWp8cjSIcBq3EgDoj1hiVUGVzcBKnHw0dovRbexZZ2ebterK+Y4A== 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=no7odjjTpUEYEibVaw6lUEjE4gNcZXmxYaVyCHx1DW4=; b=D56TAj/71BA4nUHntVhsVoo9KGpyOmvCJ8pRDbJE5/FYgInfWaqaM44FUcUrJv2rvcQDbFj2xsbApYHKv105DcvTYQvx+NpcXPDZnY/uDuDAZq56uynVhTITKTXvzg/fRdcwFalIAWyteA2QVL5rH6mnM0yZH05VUT/8tHds1VkMbQYOrpPyBl8hGiCNx+C4cQioWSjcJ0KG/ect7bJbFUEHVE5RrKKeGStFfl8Nz6vAOSR0vWsdX4OOab483n2CSVV7dvJd+JsL9GXlRGyu/FQIVDVnyzRVe+N4Q6UKz1FZDhJct3wsCSRZmgPDgYroCyxNoV4EKjqhvTXtCeRn0A== 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=no7odjjTpUEYEibVaw6lUEjE4gNcZXmxYaVyCHx1DW4=; b=RhCwPHJfEV+BoxWt5xnluZylV8mbVwdmJ//5/qm9lxf5lC6EVfVK/u7f2Ryg/wlzy2pBRqlEqKGd+Gw5Gg6V8glPvbzb23rRcf4KGOkYb5X7RyEwwbxkTOjS2KqYOWQatXHaOo0TsJs6kKqHHOy9B65MgevNPX5pr01RV/mj5lU= Received: from CO1PR15CA0110.namprd15.prod.outlook.com (2603:10b6:101:21::30) by MW4PR20MB4406.namprd20.prod.outlook.com (2603:10b6:303:189::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.17; Fri, 20 May 2022 10:08:04 +0000 Received: from MW2NAM12FT003.eop-nam12.prod.protection.outlook.com (2603:10b6:101:21:cafe::a7) by CO1PR15CA0110.outlook.office365.com (2603:10b6:101:21::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.26 via Frontend Transport; Fri, 20 May 2022 10:08:04 +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 MW2NAM12FT003.mail.protection.outlook.com (10.13.180.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5293.7 via Frontend Transport; Fri, 20 May 2022 10:08:04 +0000 Received: from CAMSX2.w.pdtpartners.com (10.250.24.28) 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; Fri, 20 May 2022 06:08:03 -0400 Received: from camsx3.w.pdtpartners.com (10.250.24.157) by CAMSX2.w.pdtpartners.com (10.250.24.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Fri, 20 May 2022 06:08:03 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.173) 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; Fri, 20 May 2022 06:08:03 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jWTKwmZqIgf8jJCqG6dgzJp3G5rdpzNWha56NX7jQhGLy9QAtHS7oCLhgaa8oFdrjr57KsCYig++qHai32fHQd2v6rnPzdMfRDR2uNTmziLFLzB6NUWrhyBtxefJPURqueZJSwo8i3eTMLEshlPPeqXZAAlYYd6tG/frL8sEnlrcyWpr0s7lw/HFK6F/SPMQgIyc5mCeACM6nTWlPrpUE0y0fNkjHZih8u8ywsT8F/dkXI5yxEwQkm338F61KQOqx3HvFIUr087HmYL1eIgb/F688HuDrbPJoSQiVusChtD+XcLrLjm0YMo+P6Sh/Gt/G5uTIc8WUvQVOO6q9cIUOg== 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=79C6dmkFZb/CGCKFPZqpNhot8GhnDM03J9e6lbWPpDI=; b=dBcvLyjQgs3JXJYvAbLiHkYGdJuovJva8E2WaySyl8+GBcY5vYoJ+BYU8ATs1XGGigFvicpBn5gDrfVdwakWBffP63EQl2v8gIjrlQeXXM/FSIqj0gELIOPw9DMejzyinqGeLScTzFIQWdDYFblrTjWGQ3Nq062BjI4LrVywIMMAUH5TY8LYRC3EXcgU8kvk9CRCZUYhFGnkiGhm0tc2CXqKEEQy8Vc6C4LV+5+u+430CAZbDvAGN1V3dvbMQPluzSIg6Ilw4Z6+5d/M1WNfcWNI/z8qDfaJtEiP2GwxoDbXvfnTn77ln2QfwQUJW/bHflYGLHF4BxuR76GJZCazHQ== 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=79C6dmkFZb/CGCKFPZqpNhot8GhnDM03J9e6lbWPpDI=; b=LniSidV6ctEGtc1tL9TfKqeBKL/X6grmbicRe7uO+efPFvWkc34DpIiKFUGWsbt9qORf4NKLROmJ9R9ctw6cClYFcldf4hzrBn2jJfx3+L5Acy1kDsMt58RWZ+xI3tzPebbblu14hF4gUbWaJN7X2caUynqlvnJkiVRZAFjaO3k= Received: from CY5PR20MB4843.namprd20.prod.outlook.com (2603:10b6:930:24::12) by MW3PR20MB3515.namprd20.prod.outlook.com (2603:10b6:303:2e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.16; Fri, 20 May 2022 10:08:01 +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.017; Fri, 20 May 2022 10:08:01 +0000 From: Stefan Radziuk To: "zsh-workers@zsh.org" Subject: Using the history expansion modifier 'a' results in excessive lstat calls Thread-Topic: Using the history expansion modifier 'a' results in excessive lstat calls Thread-Index: AQHYbDEPYF0J/kRF40qfVUNFCmBzxg== Date: Fri, 20 May 2022 10:08:01 +0000 Message-ID: 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: 7bade2ef-5c2b-4f8f-63f2-08da3a48a15f x-ms-traffictypediagnostic: MW3PR20MB3515:EE_|MW2NAM12FT003:EE_|MW4PR20MB4406: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: ilaxPuO3X97qgHyFl5bRYziNgeUDa9jBmIZAP3E5c2GkOfqtSwsyaeypo1Ylsr6HS1ndJZWMVDV6lvGiMXVFxebuSxe4vN110ZWBzQX6tFAShtO6QoFmjr0H5GbaqGf0uUOqGz8Z/AHZlyLe4fOTFoAoRL8wLxA9/C/kntDMYr0WwarUoVhgetnZZHy3ys1N5nIRS950JcEExbzKxSeNfgrUwH993HJIog7seJ/UljgHpilc0ORookhRDSPAVYiHlYby8fex2hNewhL/AjxwV2eCTIP+C/FZFH7Fs/94ZZbaF/vUmKs5PknEwAdlIbuPQXSN1X+KizvpFa4HvySg+N87KZSvVuNRlvmp8PUFEvUQFD661MZVz/K3ekweqJz86Z97YPDzm7QaiyrPRuZxTZB0XO9xvng5zxbJElcZ6BR0bIP0ICJ+utoCngkqs76htjx4D/SQgZVZTgyqCyj4DM4JbJp5TDZMubbAYd9OEoy/+TRMVAFxR5rwkDW/lLwcsC7QMJGVJl8RdBeXqC2A81D08HIGMqdsQXWSG7mr1tpg57sCM0Qmph3xsoFVJ3et/bapz42DryKofSq0+xNEuIQlsPk8oHR8wB2wORBOg8R4XvjCZNsF+9djVQYNijeIinB8SOTAlzVgTCGQ23Bi1ZYLK6+ou/Wyo+RWIdD9lit+UFZKoNSLrdYFNV2iN0pGIF5S+PDCIlZ60EDcKVeRKA== 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)(508600001)(26005)(33656002)(186003)(55016003)(7696005)(6506007)(9686003)(71200400001)(66556008)(66476007)(66446008)(64756008)(122000001)(38070700005)(8936002)(6916009)(316002)(8676002)(52536014)(5660300002)(38100700002)(91956017)(76116006)(66946007)(86362001)(2906002);DIR:OUT;SFP:1102; Content-Type: multipart/alternative; boundary="_000_CY5PR20MB4843E231D8BA513A209C6541C1D39CY5PR20MB4843namp_" MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR20MB3515 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: MW2NAM12FT003.eop-nam12.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ae47b2b5-a185-4488-2cbb-08da3a489f9e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /UPyW+KHKYkrVYGd49khR+fJwIYI/kqK0+tvo/tlgUZc62Ag4MKu8SUO6SgQYKso/2tcw+zJfVp0WoZKMLXuCGan0Z3pYqiS2RfaIu5Y6Anb3l9xrd8jgn6iODj48iTVOsC3pkzMSPP66MO93lV0iZAF+Y8LdTSviPGNhpSDqzqruQcXtXANN1jHW/6wf66NXOat6EiQkFa5R8BPz4ztAaul5J6cQW2TaO3tcj2iyAIItpG707O9ru3K1LQzLyBE57eXrbGqe+Gib4PF3mE0K9tH71R9e3EKrmxBpeNUEsVVECWGToRiJUn4xcTZvGPzbr64vWBsrhBM4v1iC7R/mcJ7Cwtpm90Biq+lqR8b+dqN/6XiQ2bBr/Bc1e4/6hREIfNAVr1dvk6qG0KliXd8oOd82kg5K5rYaKciZpF+kt+OAp0JRZnJCwGfa7Q0oOTmK7GoJJAegtdOBD450LXw8kxaFhGgiEiL6x6flGwFKVi7TItTZ6aKkXoZ3Zhh2KmzyyBqBJSMmjfY3lzDDauwYSHpqMLGE2jXrVjb4Ez4fVee/gQO7b9iOmxMEhXQMDNd/WGZhiRMOCH0OpXJ3INLUZ6kZk9EocX4lQiS8lexrlRnmKzpnZxXB6gO0mvYv7+INoiTNMIKu89lKtxMQ9qTqtSTuRolO8xHxfDFmlpXuhsYsBqiMzseD48HiP7gJovm 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)(70586007)(70206006)(36860700001)(316002)(8676002)(186003)(6916009)(336012)(8936002)(52536014)(5660300002)(47076005)(9686003)(82310400005)(6506007)(81166007)(55016003)(83380400001)(86362001)(2906002)(33656002)(356005)(26005)(508600001)(7696005)(36900700001);DIR:OUT;SFP:1102; X-OriginatorOrg: pdtpartners.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2022 10:08:04.4223 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7bade2ef-5c2b-4f8f-63f2-08da3a48a15f 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: MW2NAM12FT003.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR20MB4406 X-Proofpoint-GUID: 59KsYY45f65V7VAd0kxi4hoqCPepzZPt X-Proofpoint-ORIG-GUID: 59KsYY45f65V7VAd0kxi4hoqCPepzZPt 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-20_03,2022-05-20_02,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 clxscore=1011 mlxscore=0 impostorscore=0 phishscore=0 malwarescore=0 adultscore=0 priorityscore=1501 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205200074 X-Seq: 50259 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_CY5PR20MB4843E231D8BA513A209C6541C1D39CY5PR20MB4843namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable zsh uses zgetdir to evaluate ${FOO:a}. When in a directory in a different f= ilesystem to its parent, zgetdir will lstat many entries in the parent. Th= is leads to slowness, especially when some of the lstatted entries are on r= emote filesystems. This behaviour can be avoided by making zsh use getcwd instead (build zsh w= ith 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 zget= dir is being used over getcwd in the first place. It seems it was implement= ed this way in the 1990s to work around a bug in some implementations of ge= tcwd, 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 ge= tcwd primarily (i.e. not as fallback), or perhaps USE_GETCWD could be enabl= ed by default (currently it is only enabled on QNX builds). ________________________________ 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_CY5PR20MB4843E231D8BA513A209C6541C1D39CY5PR20MB4843namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

zsh uses zgetdir t= o 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 lstatte= d entries are on remote filesystems.

 

This behaviour can be avoided by making zsh use getcwd instead (build zsh with = ;USE_GETCWD). Interestingl= y, 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&n= bsp;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 US= E_GETCWD could be enabled by default (currently it is only= enabled on QNX builds).

 

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