From: Allen Li <darkfeline@felesatra.moe>
To: 34192@debbugs.gnu.org
Subject: bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo
Date: Thu, 24 Jan 2019 22:14:51 +0000 [thread overview]
Message-ID: <CADbSrJy3V5isZSHmUfYgF3Bv5UkCgBRAtTOHgAqB331+-4-2oQ@mail.gmail.com> (raw)
I believe Bash 5.0 breaks TRAMP sudo in
tramp-sh-handle-file-name-all-completions.
Using Bash 5.0 and (find-file "/sudo::/") results in an error "Process
has died". Setting tramp-verbose to 9 shows that it dies around here:
13:56:22.449785 tramp-maybe-send-script (5) # Sending script
‘tramp_perl_file_name_all_completions’...
13:56:22.449920 tramp-send-command (6) #
tramp_perl_file_name_all_completions () {
\perl -e '
opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n");
@files = readdir(d); closedir(d);
foreach $f (@files) {
if (-d "$ARGV[0]/$f") {
print "$f/\n";
}
else {
print "$f\n";
}
}
print "ok\n"
' "$1" 2>/dev/null
} 2>/dev/null; echo tramp_exit_status $?
13:56:25.428280 tramp-maybe-send-script (5) # Sending script
‘tramp_perl_file_name_all_completions’...failed
Note that I cannot reproduce this from emacs -Q because out of the box,
TRAMP sudo does not seem to call
tramp-sh-handle-file-name-all-completions and I don't have time right
now to figure out what setting enables that code path.
Switching my /bin/sh to Dash instead of Bash 5.0 immediately fixed the
problem, which strongly led me to suspect some subtle change in Bash 5.0
broke this.
In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
of 2018-07-05 built on juergen
Windowing system distributor 'The X.Org Foundation', version 11.0.12003000
Configured using:
'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
--localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules
'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
-fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
next reply other threads:[~2019-01-24 22:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-24 22:14 Allen Li [this message]
2019-01-28 8:19 ` bug#34192: 26.1; Bash 5.0 breaks TRAMP sudo Michael Albinus
2019-01-28 8:58 ` Allen Li
2019-01-28 9:12 ` Michael Albinus
2019-01-29 5:48 ` Allen Li
2019-01-29 10:04 ` Michael Albinus
2019-02-03 0:21 ` Allen Li
2019-02-04 11:53 ` Michael Albinus
2019-02-07 7:04 ` Allen Li
2019-02-07 9:22 ` Michael Albinus
2019-02-08 8:45 ` Allen Li
2019-02-08 10:44 ` Michael Albinus
2019-02-17 3:11 ` Allen Li
2019-02-20 14:43 ` Michael Albinus
2019-02-21 10:38 ` Michael Albinus
2019-02-21 11:20 ` Michael Albinus
2019-02-21 10:39 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADbSrJy3V5isZSHmUfYgF3Bv5UkCgBRAtTOHgAqB331+-4-2oQ@mail.gmail.com \
--to=darkfeline@felesatra.moe \
--cc=34192@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).