From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sylvain Chouleur Newsgroups: gmane.emacs.bugs Subject: bug#16582: Bug: tramp shell command doesn't read stdin Date: Wed, 5 Feb 2014 22:01:58 +0100 Message-ID: References: <87k3di97pa.fsf@gmx.de> <87eh3k5pdb.fsf@gmx.de> <87zjm6rmi1.fsf@gmx.de> <87r47hsvld.fsf@gmx.de> <87lhxpslji.fsf@gmx.de> <87r47htvzn.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3ec7e7f99fd04f1af12ca X-Trace: ger.gmane.org 1391634190 3684 80.91.229.3 (5 Feb 2014 21:03:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Feb 2014 21:03:10 +0000 (UTC) Cc: 16582@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 05 22:03:15 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WB9co-000759-GC for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Feb 2014 22:03:14 +0100 Original-Received: from localhost ([::1]:33231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB9cn-0005AE-UW for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Feb 2014 16:03:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB9cj-0005A9-Em for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 16:03:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WB9cc-0007DS-Mp for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 16:03:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB9cc-0007DI-Jj for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 16:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WB9cc-0008Uw-0W for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 16:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sylvain Chouleur Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Feb 2014 21:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16582 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16582-submit@debbugs.gnu.org id=B16582.139163414632617 (code B ref 16582); Wed, 05 Feb 2014 21:03:01 +0000 Original-Received: (at 16582) by debbugs.gnu.org; 5 Feb 2014 21:02:26 +0000 Original-Received: from localhost ([127.0.0.1]:51275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WB9c2-0008U1-8X for submit@debbugs.gnu.org; Wed, 05 Feb 2014 16:02:26 -0500 Original-Received: from mail-qa0-f45.google.com ([209.85.216.45]:64477) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WB9bz-0008Tr-3S for 16582@debbugs.gnu.org; Wed, 05 Feb 2014 16:02:23 -0500 Original-Received: by mail-qa0-f45.google.com with SMTP id ii20so1437658qab.32 for <16582@debbugs.gnu.org>; Wed, 05 Feb 2014 13:02:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Ta78DHNE8vWetulPWo5h1jU/5oB98p7PWxDETl75/e4=; b=K0EE41IEF8QhKkVHNXWxmvB+So7+ACP9Yri4atKKTsp9TQeupqaD/zVjbIZUwFFxwj +oFhPlB9iBMAf1d9SrSPjbUtxtyzL1msOH7GzwSAlTuDoSGZfQCccdAO66dy9Xgo45eX 2Ke9rrCWK+VgASeMoGmXdGg471S6aPh+0+tPeV1E6DKe8q//JPeIFr2qaChdR4y1i0VI AMXcgCrOEqvpLd78qx127tsOFn5oAH88a2Lx2bak/ebttee1IXsduuTu+WZ23UIO+KJR BMog1A+mhVGKlmihlhKbMO+Pnc4AMMPWLvWIAOQIz1vriDW7mQ0YHUsNzN+jNsjxFRNh L6wg== X-Received: by 10.224.97.7 with SMTP id j7mr6363664qan.81.1391634138764; Wed, 05 Feb 2014 13:02:18 -0800 (PST) Original-Received: by 10.96.63.134 with HTTP; Wed, 5 Feb 2014 13:01:58 -0800 (PST) In-Reply-To: <87r47htvzn.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84641 Archived-At: --001a11c3ec7e7f99fd04f1af12ca Content-Type: text/plain; charset=ISO-8859-1 that's great! I didn't think about this one, it works very well. Thank you a lot -- Sylvain 2014-02-05 Michael Albinus : > Sylvain Chouleur writes: > > > Yes, that is the problem I'm trying to explain since the beginning, I'm > > please we have finally agreed on what was the issue :) > > What about this one (the new tramp-end-heredoc patch is already in): > > --8<---------------cut here---------------start------------->8--- > *** /home/albinmic/src/tramp/lisp/tramp-sh.el.~master~ 2014-02-05 > 16:27:23.314546196 +0100 > --- /home/albinmic/src/tramp/lisp/tramp-sh.el 2014-02-05 > 16:24:58.391993324 +0100 > *************** > *** 2720,2726 **** > (file-remote-p default-directory) > tramp-initial-end-of-output)) > (if heredoc > ! (format "%s\n%s\n%s" > program (car args) tramp-end-of-heredoc) > (mapconcat 'tramp-shell-quote-argument > (cons program args) " "))))) > --- 2720,2726 ---- > (file-remote-p default-directory) > tramp-initial-end-of-output)) > (if heredoc > ! (format "%s\n(\n%s\n) program (car args) tramp-end-of-heredoc) > (mapconcat 'tramp-shell-quote-argument > (cons program args) " "))))) > --8<---------------cut here---------------end--------------->8--- > > Best regards, Michael. > --001a11c3ec7e7f99fd04f1af12ca Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
that's great! I didn't think about this one, it wo= rks very well.

Thank you a lot

= --=A0
Sylvain


2014-02-05 Michael Albinus <michael.albinus@gmx.de>:
Sylvain Chouleur <sylvain.chouleur@gmail.com> writes:

> Yes, that is the problem I'm trying to explain since the beginning= , I'm
> please we have finally agreed on what was the issue :)

What about this one (the new tramp-end-heredoc patch is already in):<= br>
--8<---------------cut here---------------start------------->8---
*** /home/albinmic/src/tramp/lisp/tramp-sh.el.~master~ =A02014-02-05 16:27:= 23.314546196 +0100
--- /home/albinmic/src/tramp/lisp/tramp-sh.el =A0 2014-02-05 16:24:58.39199= 3324 +0100
***************
*** 2720,2726 ****
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(file-remote= -p default-directory)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0tramp-initia= l-end-of-output))
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (if heredoc
! =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (format "%s\n%s\n%s&= quot;
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 program= (car args) tramp-end-of-heredoc)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (mapconcat 'tramp-shell= -quote-argument
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(con= s program args) " ")))))
--- 2720,2726 ----
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(file-remote= -p default-directory)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0tramp-initia= l-end-of-output))
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (if heredoc
! =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (format "%s\n(\n%s\n= ) </dev/tty\n%s"
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 program= (car args) tramp-end-of-heredoc)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (mapconcat 'tramp-shell= -quote-argument
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(con= s program args) " ")))))
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.

--001a11c3ec7e7f99fd04f1af12ca--