emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/bash-completion c6decb1d6c 285/313: Avoid escaping all non


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion c6decb1d6c 285/313: Avoid escaping all non-ASCII characters.
Date: Sat, 3 Dec 2022 10:59:38 -0500 (EST)

branch: elpa/bash-completion
commit c6decb1d6c175f4c1f87c3733094307652ab10f1
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>

    Avoid escaping all non-ASCII characters.
    
    This change updates the set of special chars to not include non-ASCII
    chars.
    
    The previous set of special chars to escape was previously defined by a
    list of characters *not* to escape, which included only ASCII
    characters. This meant that anything non-ascii would be escaped, and
    unnecessarily so since these characters are not special for bash.
---
 bash-completion.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bash-completion.el b/bash-completion.el
index 538f2ed2b5..a73324af48 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -253,7 +253,7 @@ explanation.")
 Mapping between remote paths as returned by `file-remote-p' and
 Bash processes.")
 
-(defconst bash-completion-special-chars "[^-0-9a-zA-Z_./\n=]"
+(defconst bash-completion-special-chars "[ -$&-*,:-<>?[-^`{-}]"
   "Regexp of characters that must be escaped or quoted.")
 
 (defconst bash-completion--ps1 "'\t$?\v'"



reply via email to

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