From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#16582: Bug: tramp shell command doesn't read stdin Date: Wed, 05 Feb 2014 09:29:10 +0100 Message-ID: <87zjm6rmi1.fsf@gmx.de> References: <87k3di97pa.fsf@gmx.de> <87eh3k5pdb.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391589015 21129 80.91.229.3 (5 Feb 2014 08:30:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Feb 2014 08:30:15 +0000 (UTC) Cc: 16582@debbugs.gnu.org To: Sylvain Chouleur Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 05 09:30:21 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 1WAxsC-0001wR-TH for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Feb 2014 09:30:21 +0100 Original-Received: from localhost ([::1]:57910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAxsC-0000Tf-E7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Feb 2014 03:30:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAxs2-0000TX-Ce for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 03:30:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAxrv-0001as-3M for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 03:30:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAxrv-0001aY-0F for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 03:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WAxru-0003fv-92 for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 03:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Feb 2014 08:30:02 +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.139158895714048 (code B ref 16582); Wed, 05 Feb 2014 08:30:02 +0000 Original-Received: (at 16582) by debbugs.gnu.org; 5 Feb 2014 08:29:17 +0000 Original-Received: from localhost ([127.0.0.1]:50120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WAxrB-0003eV-F2 for submit@debbugs.gnu.org; Wed, 05 Feb 2014 03:29:17 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:62085) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WAxr9-0003eN-Ed for 16582@debbugs.gnu.org; Wed, 05 Feb 2014 03:29:16 -0500 Original-Received: from detlef.gmx.de ([93.209.68.221]) by mail.gmx.com (mrgmx001) with ESMTPS (Nemesis) id 0LmrUq-1VaW6X3FIS-00h9HR for <16582@debbugs.gnu.org>; Wed, 05 Feb 2014 09:29:14 +0100 In-Reply-To: (Sylvain Chouleur's message of "Tue, 4 Feb 2014 23:53:26 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:zMWd7g2b59yJQ4t4RPjTwYIUpXZhEkcqoKmwkBIc7PE2VnXFqD0 hS2Wimk18KgcvmAbahcoV+KudBhFVzKb6a3regK1v9S3aKoAQPoobrwQLTjX47Eb/m3gASK Yeqyh3KZUblXf/auW5pEhy2rAbuBXkCjrg2G3xxT1eMNhpalVGkZr00SRa4LHnD9MGuO8Am Jf2nEPPJstTVurF5wfmIQ== 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:84604 Archived-At: Sylvain Chouleur writes: > Hi Michael, Hi Sylvain, > replacing EOF delimiter by a md5sum works well. Good. > The process substitution works only for real bash shells, or zsh. > It does not work with sh or busybox. > > So I think we have two solutions here: > - Support multiple methods, chosen by user configuration: > -> bash -c "cmd" which doesn't support very long commands > -> bash < -> bash <(cat < basic shells like sh or busybox (works with bash and zsh) > - Reproduce method 3 by writting commands in a target's temporary > file, launch the shell with this file in argument, and finally remove > the file from the target. > > The last solution have the major drawback to execute extra commands > each time and to have a writable filesystem usable on the target I don't get your point. If my patch works well (as you said above), why do you want to change something else? If you still have problems with my patch, please give me an exact recipe what triggers the problem. I cannot reproduce the problem here, sorry. A Tramp debug buffer, produced with tramp-verbose set to 6, would help. > Cheers, Best regards, Michael.