projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
237cadf
)
Fix Perl script in Tramp
author
Michael Albinus
<michael.albinus@gmx.de>
Fri, 8 Sep 2023 09:07:54 +0000
(11:07 +0200)
committer
Michael Albinus
<michael.albinus@gmx.de>
Fri, 8 Sep 2023 09:07:54 +0000
(11:07 +0200)
* lisp/net/tramp-sh.el (tramp-perl-file-name-all-completions):
Fix Perl script. (Bug#65744)
lisp/net/tramp-sh.el
patch
|
blob
|
history
diff --git
a/lisp/net/tramp-sh.el
b/lisp/net/tramp-sh.el
index c00234d43dac6e3006c759a9450a79fc5b613a99..05cd27780cbaf18506d57084ba19184d41a66015 100644
(file)
--- a/
lisp/net/tramp-sh.el
+++ b/
lisp/net/tramp-sh.el
@@
-634,7
+634,10
@@
characters need to be doubled.")
(defconst tramp-perl-file-name-all-completions
"%p -e '
-($dir = $ARGV[0]) =~ s#/+$##;
+$dir = $ARGV[0];
+if ($dir ne \"/\") {
+ $dir =~ s#/+$##;
+}
opendir(d, $dir) || die(\"$dir: $!\\nfail\\n\");
@files = readdir(d); closedir(d);
print \"(\\n\";