From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Shell-command is no longer a shell (was: Tramp 2.0 -> 2.1 migration woes) Date: Mon, 28 Jan 2008 21:54:01 +0100 Message-ID: <87lk69acye.fsf@gmx.de> References: <20080127040051.GA16241@Clio.twb.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1201553418 762 80.91.229.12 (28 Jan 2008 20:50:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2008 20:50:18 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, rfrancoise@debian.org To: "Trent W. Buck" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 28 21:50:37 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JJavz-000422-0E for ged-emacs-devel@m.gmane.org; Mon, 28 Jan 2008 21:50:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJavY-0003sf-6N for ged-emacs-devel@m.gmane.org; Mon, 28 Jan 2008 15:50:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJavT-0003s1-1g for emacs-devel@gnu.org; Mon, 28 Jan 2008 15:49:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJavQ-0003r6-Mt for emacs-devel@gnu.org; Mon, 28 Jan 2008 15:49:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJavQ-0003r1-A8 for emacs-devel@gnu.org; Mon, 28 Jan 2008 15:49:52 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJavP-0006eh-Tu for emacs-devel@gnu.org; Mon, 28 Jan 2008 15:49:52 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JJavP-00026E-Lk for emacs-pretest-bug@gnu.org; Mon, 28 Jan 2008 15:49:51 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JJavM-0006du-EN for emacs-pretest-bug@gnu.org; Mon, 28 Jan 2008 15:49:51 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JJavL-0006dR-Qt for emacs-pretest-bug@gnu.org; Mon, 28 Jan 2008 15:49:48 -0500 Original-Received: (qmail invoked by alias); 28 Jan 2008 20:49:46 -0000 Original-Received: from p57A207B2.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.7.178] by mail.gmx.net (mp044) with SMTP; 28 Jan 2008 21:49:46 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18ZLmFtUTAZtvF8v2SykssG1loQ4oCTTqTTCbJHwS UQL280U9ZOxtvc In-Reply-To: <20080127040051.GA16241@Clio.twb.ath.cx> (Trent W. Buck's message of "Sun, 27 Jan 2008 15:00:53 +1100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87725 gmane.emacs.pretest.bugs:20798 Archived-At: --=-=-= "Trent W. Buck" writes: > It seems that shell-command (M-!) no longer uses a shell in TRAMP > buffers. Could you, please, test the appended patch? It shall fix the problem. Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment *** /home/albinus/src/tramp/lisp/tramp.el.~2.625.~ 2008-01-27 15:43:19.000000000 +0100 --- /home/albinus/src/tramp/lisp/tramp.el 2008-01-28 21:41:02.000000000 +0100 *************** *** 3781,3787 **** (command &optional output-buffer error-buffer) "Like `shell-command' for Tramp files." (let* ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command)) ! (args (split-string (substring command 0 asynchronous) " ")) (output-buffer (cond ((bufferp output-buffer) output-buffer) --- 3781,3789 ---- (command &optional output-buffer error-buffer) "Like `shell-command' for Tramp files." (let* ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command)) ! ;; We cannot use `shell-file-name' and `shell-command-switch', ! ;; they are variables of the local host. ! (args (list "/bin/sh" "-c" (substring command 0 asynchronous))) (output-buffer (cond ((bufferp output-buffer) output-buffer) --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--