projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f1269c
)
Fix infloop in 'shell-resync-dirs' with tcsh
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 10 Dec 2022 12:55:01 +0000
(14:55 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 10 Dec 2022 12:55:01 +0000
(14:55 +0200)
* lisp/shell.el (shell-resync-dirs): Remove trailing slash from
output of 'dirs', for csh/tcsh's sake. (Bug#59804)
lisp/shell.el
patch
|
blob
|
history
diff --git
a/lisp/shell.el
b/lisp/shell.el
index b396bc2b180cc6d1223e58e64d53c49f71b25986..dadbdcbc034d238c4e1933c10e73776d4f967656 100644
(file)
--- a/
lisp/shell.el
+++ b/
lisp/shell.el
@@
-1162,6
+1162,7
@@
line output and parses it to form the new directory stack."
(dlsl nil)
(pos 0)
(ds nil))
+ (setq dls (string-trim-right dls "[ ]+"))
;; Split the dirlist into whitespace and non-whitespace chunks.
;; dlsl will be a reversed list of tokens.
(while (string-match "\\(\\S-+\\|\\s-+\\)" dls pos)