From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#60819: 28.2; `ls-lisp.el' regression introduced in Emacs 26 Date: Sun, 15 Jan 2023 17:04:05 +0000 Message-ID: References: <83v8l85g8a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9371"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "60819-done@debbugs.gnu.org" <60819-done@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 15 18:05:34 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pH6Ro-0002BW-L8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Jan 2023 18:05:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pH6RV-0001Kg-2G; Sun, 15 Jan 2023 12:05:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pH6RK-0001Ju-Qf for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 12:05:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pH6RK-0002vY-Hn for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 12:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pH6RK-0006yN-5g for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 12:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Jan 2023 17:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60819 X-GNU-PR-Package: emacs Original-Received: via spool by 60819-done@debbugs.gnu.org id=D60819.167380225926714 (code D ref 60819); Sun, 15 Jan 2023 17:05:02 +0000 Original-Received: (at 60819-done) by debbugs.gnu.org; 15 Jan 2023 17:04:19 +0000 Original-Received: from localhost ([127.0.0.1]:59478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pH6Qc-0006wo-QB for submit@debbugs.gnu.org; Sun, 15 Jan 2023 12:04:19 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:40778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pH6QY-0006wa-4O for 60819-done@debbugs.gnu.org; Sun, 15 Jan 2023 12:04:17 -0500 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30FFT1I9030187; Sun, 15 Jan 2023 17:04:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=cq5P90NEVRN2mG/zHqs9Tc2pxtlO8sxxp74lNO8gdnc=; b=irbtAC7PAF2oM983NClfaBF3aHY2qy2t9A5CGwUWyOiro+DMsbfZtNDGNKSh/lED6Abh bAd969573ECzLPFGCLrIQG4lNhOzP1ffbA9L6xoWU500vlFo1LHtvD0bayVA6IRZbbYZ J90v8wWNcNP2LDQuACTTwHaumNqI9d7cH2WuBR0S3nHbG+6gH0Ie6N/Ac1usmXRHIZXe ICjeaQAU6SMUxXmTkyOY+ephhWAJshjy7Q86Ay7JtPDmo6bf++IlfTKQTuz4pINEsk7G 7TNRSdoz8Ng985EpjZogSRv6vbBRwDmRZxCPU5B9FoaSVaIiwZGQz22O5Ublbb/T3Bxa XA== Original-Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3n40md8whc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 15 Jan 2023 17:04:12 +0000 Original-Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30FH3n9v002646; Sun, 15 Jan 2023 17:04:07 GMT Original-Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2103.outbound.protection.outlook.com [104.47.58.103]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3n4njb803x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 15 Jan 2023 17:04:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X0pYwe8QMjZG2FBj4p2kFzqhrSWYS3OZg3J/92luh/P+VVPm0kfKzatEWvrL51xlrNbH9Z7zziVY+BPcdqkguYkdDu9Yi535KFaszQ73AauLm57yLrFUksdC+lZZEmak79kGmAvaBfni35IBYDLHji+AAdCwRByp0YWuIW4w8RR+1iJnWJgdwOskbiLUOgxhtsGR2ZzuJlhyj6h0WJu7TXDbz4IHDpfZKV3qGIVArtaQLkwwl3XOhYe8GFQ2614VFzI/qV7j/+MY8gKEool0tTl/lhWou7wK5frYZv/YqPm/G3SsWVMOVWpd4x5uTDjZM5HjovZLj0KXLAYWr25sSw== 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=cq5P90NEVRN2mG/zHqs9Tc2pxtlO8sxxp74lNO8gdnc=; b=nduw2jEy9O4N5vSQaHFQtg7awLcR5iMjZW+XCGwlPmbOW5rvniKD4jivLzV+E65uDpd0Gxmb+tTZxI1oVBKJn68AIj6r2zILRMrSJp5sVroBDesj+NmiX+AukoAlLwCkQ4erpMtuaEY8+4O1x+JmjnD/coDV5Je7WqYtrKpwjP/tVfBLgG3Mi9vu69ILnWX6zfvoZnYG2hKhBYkR/earwsJB9Eg4iB4DcLMGH2yyIz+9CUy0DyBLwRUMQ4KHanYZLEY51331NPTi0GWaSgHo/tSbZ2uIekuL5REwxjnn2+lCT3/ZnIC3Kk9I6R2Xs3cjmeyE2wDEV62wNKd9ydLIpQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cq5P90NEVRN2mG/zHqs9Tc2pxtlO8sxxp74lNO8gdnc=; b=SIlYRH5aO5D8MKFs/JZ0d3+zbMKej0/gIHyxZOVPsYHt+p+ZNuSBXiIInCDKWrR4EN1VkFkIIlf0R/qoZR72k9sGGojZo1xypfC1jeI/HCZ/FBSGbIRcQEs39XpwyeAcp7uz8ggABi0+8hSUDkleQgLk2twXh53+g9+Ypjiuv60= Original-Received: from CO6PR10MB5473.namprd10.prod.outlook.com (2603:10b6:5:355::21) by SN4PR10MB5654.namprd10.prod.outlook.com (2603:10b6:806:20d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Sun, 15 Jan 2023 17:04:05 +0000 Original-Received: from CO6PR10MB5473.namprd10.prod.outlook.com ([fe80::59af:ade8:1aa1:3ec0]) by CO6PR10MB5473.namprd10.prod.outlook.com ([fe80::59af:ade8:1aa1:3ec0%9]) with mapi id 15.20.6002.011; Sun, 15 Jan 2023 17:04:05 +0000 Thread-Topic: [External] : Re: bug#60819: 28.2; `ls-lisp.el' regression introduced in Emacs 26 Thread-Index: AdkoZ4I6rcQ2M+6VQ+a8aatrAmnqUwAV69XOAA+RdsA= In-Reply-To: <83v8l85g8a.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR10MB5473:EE_|SN4PR10MB5654:EE_ x-ms-office365-filtering-correlation-id: 9090ae67-0275-46da-90dd-08daf71a823d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mi/cfeJoqsDRrJxrJq19VdYSewwr5kc0a2M7dsS4L73/O/SKjxnbsgZepzoRQR8v8HZjkNUuRRrPhIQmsZGZeasf5BGzNi0Hot3TMozZ8EYgw1BtNoIsRN+f2aYQnMiks/yn+nSoAI8r4pT5/XuvdQkly8v9+teHObampDU/Cin1T133Hs27a4NJNAO6gGdUtnxoqNrEBCc+jV0TbFYNvJMkdOYo7ViHW031IxVFdXI0ybYHUSWv3MIkUjRBz4DV9Cj9oP+ygDdcR7PflDi0FynjXsZRyrpsw4+Z6saQu5dEJMXYVC2yWPLvGQKS5f8yL5oeS1UkQTHCc3aMMjfSqztBpBo1Vu8iUmO6qzN5fL2gVHud8Bz09Ky0JAtkFrRtmLGKGrNvOAIr4BSpnrDVumh1jXbhVzQh2IZXkYxpEceHCGkctpnBgdrkf8l3mVFs9EP86AVRizt8lbsSbdagqacWITUkJS+NaWlg9590ghVORNWh0pE0QGV7+vGMtPOZLoDDzIlSK0QG+ujNg16UFGOGs3lwfy2H2gfg8Xqcr5cgbzJMxG5EYtSfQVIwWJCclsMebfeCPOC2hhCMl4LeyMgeQMdRKv72CkhKCHprvEayAK4SfrGDbZbXPLKPx685aNMRFfFH+qlicNMMi0jCA4CTt5KoGMkHAdOF5dvtfW81RnSyOWBprEv0sjEpX/sBfpf61ZAO9Tu+6ZwO5IcMIJoMLojPgAQhZxN64hrb4IA= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR10MB5473.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(346002)(366004)(39860400002)(396003)(136003)(376002)(451199015)(86362001)(44832011)(5660300002)(41300700001)(52536014)(8936002)(122000001)(38100700002)(33656002)(6506007)(83380400001)(7696005)(316002)(71200400001)(9686003)(186003)(38070700005)(26005)(478600001)(4326008)(6916009)(8676002)(66946007)(66476007)(66446008)(64756008)(76116006)(66556008)(55016003)(2906002)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: koQqzsI6TER6DSimBUGt9FhaWlrJNsATnJggVOs5YpK2O0y4sQ/xbfdME0qNFANJraRmEttGWPbF4AF6RBAi+hxb4vjeJwd7O3NdYjPCaYxQnpFv3DrN07jtxsjIVOwUGO5Us2rob6QcutFmoyB0/GHIHOpbI+at2Anf2/jQ1EYuobe3VLFkgkSP25+OWpIN+IStY+Zh+H363tWhiQGMXkpL7kaYdYKRdaYO2ec38HXTGUBmwxtrAKCzFZlPSeXMr5GmtjVMQStRd+nkQcxbotCVQNF9Or2jiCZDSLmAMSIJhBRvhECpiQOYRgrV32O5fANqXZiQIngEvc533t4Var3Y+na3j+oSvmIp+/RdSGZPV9qOsI6IOHZLpl+3CM0Tan++qVVTC4M5K2kguS6Eg0q2OhUrtnBEuvZadjhof8n2RzmhWgpnpP4dGlDuLvK7JVsKNpVdOMJa2MfmlQFLx25sq47IlwuJCcT+tcM/MScDlzc8GyJSpu12gOLz7hRZMLcR/HtqO+V3H4mP8B+BiV/vEt37kx1bgNPU0PmCRrXSNGclw5g24IN65ARaiEtfG73ELkKhX1f6kWapqHe0/7L0Fdx0/qdQRkOtTMo2Ajh51ApCcmh+nH3Wk2CUud7ucvXHLDhOzMmXr/68iWn+a7xSABpnziLPBE3/x7JYDP6d5Hdg4DpC9PCs6+W+RexqLoeYWinVfWX+CQBFVUAhpy0zsGxvuAPD9MTkg83hemnVUnDyEc/E8vd5Qm moRu3ajT9IL13uTVNl225fr51DDDWtyQuFYAdweMtBEteUeqfBevKga1TJ69TL+MwR6ce/D9KCy/pMTnedYkPLCqCOZ1NzeT89 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Y6jASavceHlEg9JAXB2uSxRorgsD3+zKlWjLquvNfd4R0+NhtauVWbu+fKY6HUiS3+X887vCaAWY2erosyyquoO8p/IVjcLQ23E/JlNNGbE6y5rSi+QnhAnc3pUOJxQKTy+eJLAaUoDiUtK0DS8TJnLrXeId6k0qM44bTZ7nEs91jjBClZMg4n+4ycgy0g/p5BbkC6JqzqUbC55Poupx6M2LUG32eo068eG4sif1xrzh61MTeHwGLbGy6YlgrpQJsFF9nWfGciGl7rAamQHwXp7u/464bi5WMYEf372U1M5c6QiCKR6vwNhWsmFW1pQWtFYOg4rhfFkhUu7q6Nx1iRupgoYLk7CHZdUHz/cjfP7dFAks0juWwixMvN/IsMuTB/g/nnlnlhKbmFFv3IEGUDqVSk50lCaCuGS5KMagRu8kSmGtDBb89eb/FGCRNIr7lgwGeF3OSrY4fIpCojiH6TgsYYXxOE1ZFvkW0Yd9X1U0zj570L36ybENvpb94tptExhx/WvB+1W1rG5FtktISpgbx5rH4Hsrgtse3nzPxlAs40ZeDG9nj5lClIjmL4ILSSN1BqoY/ocrau4wxdqaH9f/UUbdeyFW70IaUM1xvzHXO5xUysJCq5Z/VOKml1mQaC5hp1ZJC0ucvKuv/x28CUHEm/S4u1tG4E3w2ZTQzdOzZRxr/JgVcc612uaLCmVX9C79sd3EwrMV6x4xEhExlfu9GzhmW3ZFfQFb4lsjadxlSI muIYU6ugUXDAQHpqMnOg6nkAmO6I3quBcT/q84neB7OI8y55eaDFjmE0oc3zM= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5473.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9090ae67-0275-46da-90dd-08daf71a823d X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2023 17:04:05.2161 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: N3Qp4FJyMyZab6WIvTOW/l4KilsRLf/oPGyEMNDluL5gwDi2Zsuiw1CSLyPyrzAGtHalOMF37hatqxP4Wb1pEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR10MB5654 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-15_13,2023-01-13_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 malwarescore=0 suspectscore=0 adultscore=0 bulkscore=0 mlxscore=0 mlxlogscore=915 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301150133 X-Proofpoint-ORIG-GUID: JyxhM8JZo1Wu3hbhDb8oQBfK0AdhQ891 X-Proofpoint-GUID: JyxhM8JZo1Wu3hbhDb8oQBfK0AdhQ891 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253442 Archived-At: > > In all Emacs releases prior to Emacs 26, if you use command `dired' > > with an input directory name that has wildcards and ends with a slash, > > e.g. c:/foo/bar/*b*/, the command simply ignores the trailing slash and > > correctly gives you a listing of all files and dirs in c:/foo/bar/ > > whose names contain a b character. > > > > Starting with Emacs 26, such input raises an error. IMO it should not. > > > > Other than that, the error message is anyway inappropriate: "No files > > matching regexp". >=20 > I fixed the message to say "No files matching wildcard" instead. >=20 > > In general, the character / in a glob pattern cannot be matched by a > > wildcard. E.g., Wikipedia says "Normally, the path separator character > > (/ on Linux/Unix, MacOS, etc. or \ on Windows) will never be matched." > > and Linux man page glob(7) says "A '/' in a pathname cannot be matched > > by a '?' or '*' wildcard, or by a range like "[.-0]"." >=20 > This is incorrect. A wildcard like "*b*/" should expand to the list > of directories whose names match "*b*", whereas "*b*" should expand to > the list of files _and_ directories with matching names. This is how > Dired behaves on Posix platforms (where such an expansion is done by > the 'ls' program), and we want a similar behavior with ls-lisp. Excellent. That's in fact what I was naively expecting or hoping for. But googling for info about what such a glob pattern should match, I couldn't find anything that supported such an interpretation. Could you maybe point me to a source that covers this - so I can read more and point others to it? If you don't have the time to find that then don't worry about it. Thx. > So I've now made ls-lisp on the emacs-29 branch behave like that: a > wildcard that ends in a slash is expanded to the list of matching > directories. And with that, I'm closing this bug. Sounds good. Thx.