GNU bug report logs - #74033
31.0.50; [PATCH] Improve accuracy of Eshell globbing syntax

Previous Next

Package: emacs;

Reported by: Jim Porter <jporterbugs <at> gmail.com>

Date: Sat, 26 Oct 2024 22:09:02 UTC

Severity: normal

Tags: patch

Found in version 31.0.50

Done: Jim Porter <jporterbugs <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74033 in the body.
You can then email your comments to 74033 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#74033; Package emacs. (Sat, 26 Oct 2024 22:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jim Porter <jporterbugs <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 26 Oct 2024 22:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; [PATCH] Improve accuracy of Eshell globbing syntax
Date: Sat, 26 Oct 2024 15:08:10 -0700
[Message part 1 (text/plain, inline)]
I've been tracking down a few issues with how Eshell parses its globs. 
For example:

  ~ $ echo **/
  # Prints all subdirectories of the current dir (good)
  ~ $ echo '**/'
  **/  # Prints the literal string (also good)
  ~ $ echo \**/
  # Prints all subdirectories (bad!)

There are a few reasons this happens but one of the things that makes 
this code more brittle is that Eshell defaults to treating characters as 
globs, and you have to opt out via an 'escape' text property. By 
inverting this logic, and proactively marking globbing characters with 
'eshell-glob-char', it now means that all the rules for determining 
which characters are globs and which are literals is in em-glob.el, so 
it should be harder to break in the future.
[0001-Improve-correctness-of-Eshell-globs-when-using-escap.patch (text/plain, attachment)]

Reply sent to Jim Porter <jporterbugs <at> gmail.com>:
You have taken responsibility. (Fri, 01 Nov 2024 05:42:03 GMT) Full text and rfc822 format available.

Notification sent to Jim Porter <jporterbugs <at> gmail.com>:
bug acknowledged by developer. (Fri, 01 Nov 2024 05:42:03 GMT) Full text and rfc822 format available.

Message #10 received at 74033-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: 74033-done <at> debbugs.gnu.org
Subject: Re: bug#74033: 31.0.50; [PATCH] Improve accuracy of Eshell globbing
 syntax
Date: Thu, 31 Oct 2024 22:40:06 -0700
On 10/26/2024 3:08 PM, Jim Porter wrote:
> I've been tracking down a few issues with how Eshell parses its globs. 

Now merged to the master branch as 9682d385c10, so closing this bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 29 Nov 2024 12:24:16 GMT) Full text and rfc822 format available.

This bug report was last modified 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.