Fix Perl script in Tramp
* lisp/net/tramp-sh.el (tramp-perl-file-name-all-completions): Fix Perl script. (Bug#65744)
This commit is contained in:
parent
237cadf246
commit
a90ba8d015
1 changed files with 4 additions and 1 deletions
|
@ -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\";
|
||||
|
|
Loading…
Add table
Reference in a new issue