From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#31924: 27.0.50; tramp handler /sudo::FILE fails when /bin/sh points to zsh Date: Wed, 16 Oct 2019 10:41:09 +0000 (UTC) Message-ID: References: <87k1qs7bfc.fsf@calancha-pc.dy.bbexcite.jp> <87wousz9g6.fsf@gmx.de> <87wouopsqw.fsf@calancha-pc.dy.bbexcite.jp> <87a7rkv5i0.fsf@gmx.de> <87vaa7odeg.fsf@calancha-pc.dy.bbexcite.jp> <8736xbf2l8.fsf@gmx.de> <878spui3or.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="-821414148-590787872-1571222473=:17160" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="182504"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Alpine 2.21.99999 (LNX 362 2019-08-01) Cc: 31924@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 16 12:42:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iKgky-000lMP-HV for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Oct 2019 12:42:16 +0200 Original-Received: from localhost ([::1]:40752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKgkx-0005k6-Fc for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Oct 2019 06:42:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37123) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKgkl-0005hB-Gt for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2019 06:42:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKgkk-0000du-Fn for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2019 06:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36451) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iKgkk-0000do-AR for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2019 06:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iKgkk-0002Pz-6Z for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2019 06:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Oct 2019 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31924 X-GNU-PR-Package: emacs Original-Received: via spool by 31924-submit@debbugs.gnu.org id=B31924.15712224829244 (code B ref 31924); Wed, 16 Oct 2019 10:42:02 +0000 Original-Received: (at 31924) by debbugs.gnu.org; 16 Oct 2019 10:41:22 +0000 Original-Received: from localhost ([127.0.0.1]:45272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKgk6-0002P1-IC for submit@debbugs.gnu.org; Wed, 16 Oct 2019 06:41:22 -0400 Original-Received: from mail-pg1-f182.google.com ([209.85.215.182]:40271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKgk4-0002Om-Er for 31924@debbugs.gnu.org; Wed, 16 Oct 2019 06:41:21 -0400 Original-Received: by mail-pg1-f182.google.com with SMTP id e13so5842174pga.7 for <31924@debbugs.gnu.org>; Wed, 16 Oct 2019 03:41:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=HwKi+7O3p5CV1vSaQPv3tuFYwLVoR7uwlHQPzccpiGk=; b=L77mzLNWQxBYREc2yKQk+UgLy+GjoRig69GpHdTkjFy2ASuNneoKIooedTSJFkV7VG nF2HZ6qHcrmLAi9FaHzRRVbRBmf216fjzH+4tKTqxL0UmXg2fcnq/GHOleqQJ+zVeafq w/aOe9kfDOxCY9xUC/vL7r1jsdlXlTxjw/fckl9g9Brrsm9sk5Zv2NWIzbiMQNeciwU6 p4tLzBUdniHE9csIdbFPnyLpVuEQVcYuIW44FG+M9tKaYVUpkay7Oyuk8uQv6goZlU59 gGjvYsg7iJY2j9tPmyERZj+B4eLTYBv1T0i5mWQ63e86bSZiihNLwS2eCoVS5WwH1wJR n5zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=HwKi+7O3p5CV1vSaQPv3tuFYwLVoR7uwlHQPzccpiGk=; b=RzWDD92n1PHeM/FHhmrVIW6E7rz9lUOwFxN7mzfcHrp62d3YiYqmCVY6u5jenEFvxd aq05OyPUJpopEkvKvzDDUBSKAyFgxzIG0pmQQ6mpRI42IqX7gks5fvjjUrWvSFWW2U1m qDqVOaDl+Gzp5kDqj6w3Ph+N3Jmd7V6nRRrwqpxVHg47DVWpA4ZEy6yKl3tj5W4wNSbF uK+U7o9GzhAEIHN8OLCBxVlk4YkYV7mfMxzIoGhs0KdwdaX/IqglT3ajXtAFILLmyINf 1iTcu1W1TQluqdUxFmQKJ2k3sJ8gfRIju70KPUJEwqBpY/w2/LtHLhxUlvvJcMagKyN8 +qSA== X-Gm-Message-State: APjAAAXthlAEbalN7uZLgDpobBmGH06jbUyj6Of3QnkMtsw8UwutpQzP 49+2rcJNy8Qu2E2/m0HiBvs= X-Google-Smtp-Source: APXvYqzeBuJDYW/lkfZuOd7udhLmgbEIw9fhis9s5Nsm8qhm4WYTlsjtr3Zd1bPROarfDa4Js3TDyQ== X-Received: by 2002:a63:3441:: with SMTP id b62mr14980745pga.274.1571222474347; Wed, 16 Oct 2019 03:41:14 -0700 (PDT) Original-Received: from ip-10-207-252-54.us-west-2.compute.internal (ec2-34-217-11-128.us-west-2.compute.amazonaws.com. [34.217.11.128]) by smtp.gmail.com with ESMTPSA id cx22sm1939778pjb.19.2019.10.16.03.41.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Oct 2019 03:41:13 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: ec2-user@ip-10-207-252-54.us-west-2.compute.internal In-Reply-To: <878spui3or.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169432 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---821414148-590787872-1571222473=:17160 Content-Type: text/plain; format=flowed; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT On Wed, 9 Oct 2019, Michael Albinus wrote: > I've applied a patch to Emacs master, which should fix this. Could you > please test? All you need is to run (setq tramp-encoding-shell "/usr/bin/zsh") > in advance, which tells Tramp to use the proper arguments from > `tramp-sh-extra-args'. >I've applied a patch to Emacs master, which should fix this. Could you >please test? All you need is to run (setq tramp-encoding-shell "/usr/bin/zsh") >in advance, which tells Tramp to use the proper arguments from >`tramp-sh-extra-args'. It's not working for me :-( After I set `tramp-encidng-shell', tramp detects the shell extra arguments, as you can see here: 10:14:09.547170 tramp-maybe-open-connection (6) # /usr/bin/zsh -i -f +Z -V But apparently, those options are been ignored because I still see those funny characters after the prompt (I mean, [?2004h ) causing the time out (I hide the IP with MACHINE_IP): 10:14:19.556057 tramp-flush-connection-properties (7) # *tramp/sudo root@ip-MACHINE_IP* (temp-file password-vector session-timeout last-cmd-time) 10:14:19.556173 tramp-get-file-property (8) # file-truename nil 10:14:19.556233 tramp-flush-directory-properties (8) # 10:14:19.556912 tramp-get-connection-property (7) # process-buffer nil 10:14:19.556995 tramp-get-connection-property (7) # process-buffer nil 10:14:19.557108 tramp-process-actions (1) # File error: Timeout reached, see buffer ¡*tramp/sudo root@ip-MACHINE_IP*¢ for details # #$ [?2004h 10:14:34.916278 tramp-process-actions (3) # Waiting for prompts from remote shell...failed 10:14:34.916546 tramp-maybe-open-connection (3) # Opening connection for root@ip-MACHINE_IP using sudo...failed ---821414148-590787872-1571222473=:17160--