bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27844: 26.0.50; Dired w/ eshell-ls doesn't support wildcards in file


From: Tino Calancha
Subject: bug#27844: 26.0.50; Dired w/ eshell-ls doesn't support wildcards in file name
Date: Tue, 01 Aug 2017 12:00:39 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Tino Calancha <address@hidden>
>> Date: Thu, 27 Jul 2017 18:23:08 +0900
>> 
>> `eshell-extended-glob' returns a list of matches on success, otherwise
>> it returns FILE;  if no match i think we should signal an error.
>
> Whether this should be an error or just FILE is a matter of personal
> preferences, I think.  Some shells behave this way, others the other
> way.  So either we should leave your original patch as it was, or
> introduce a defcustom to produce an error if the user so wants.
Indeed such defcustom already does exist: eshell-error-if-no-glob
(default to nil).
You can see at the end of `eshell-extended-glob':
(if eshell-error-if-no-glob
            (error "No matches found: %s" glob)
          glob)

John designed this package very well.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]