From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [BUG] remote execution in heterogeneous environment Date: Mon, 07 Jan 2013 17:44:37 +0100 Message-ID: <87ip79q6x6.fsf_-_@Rainer.invalid> References: <6D36E0F9-01D1-4F95-9FAA-B2B2CA10E57E@gmail.com> <87623zaj4j.fsf@gmx.de> <87hang279z.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsFot-0007SA-7F for emacs-orgmode@gnu.org; Mon, 07 Jan 2013 11:45:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsFor-0000CT-Jl for emacs-orgmode@gnu.org; Mon, 07 Jan 2013 11:45:03 -0500 Received: from plane.gmane.org ([80.91.229.3]:47352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsFor-0000Av-9a for emacs-orgmode@gnu.org; Mon, 07 Jan 2013 11:45:01 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TsFox-0003Lh-ON for emacs-orgmode@gnu.org; Mon, 07 Jan 2013 17:45:07 +0100 Received: from pd9eb3ed1.dip.t-dialin.net ([217.235.62.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jan 2013 17:45:07 +0100 Received: from Stromeko by pd9eb3ed1.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jan 2013 17:45:07 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Michael Albinus writes: > + (let ((input-file (org-babel-temp-file "input-")) > + (error-file (if error-buffer (org-babel-temp-file "scor-") nil)) > + (shell-file-name > + (if (file-executable-p > + (concat (file-remote-p default-directory) shell-file-name)) > + shell-file-name > + "/bin/sh")) The hard-coded /bin/sh breaks testing with NT-Emacs and using Cygwin as the backend because of the different path conventions in both environments. This is a hack, but it works when setting SHELL=dash, note that there are no path components in there and even if your test would fail: NTEmacs knows nothing about Cygwin's path. Can you please arrange that shell-file-name is used without alteration when the execution is local? Even for remote execution hardcoding /bin/sh seems a bit heavy-handed to me… Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada