From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xi Shen Subject: Re: How to use org mode shell with ssh? Date: Sat, 24 Sep 2016 00:40:48 +0000 Message-ID: References: <87eg4c8gfs.fsf@yandex.com> <87lgykrq3x.fsf@yandex.com> <874m58yokc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113e270405f3e3053d3626a2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnb1Y-0002un-Qq for emacs-orgmode@gnu.org; Fri, 23 Sep 2016 20:41:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnb1X-0004bW-NQ for emacs-orgmode@gnu.org; Fri, 23 Sep 2016 20:41:00 -0400 Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:34835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnb1X-0004b3-Hb for emacs-orgmode@gnu.org; Fri, 23 Sep 2016 20:40:59 -0400 Received: by mail-oi0-x232.google.com with SMTP id w11so152779463oia.2 for ; Fri, 23 Sep 2016 17:40:59 -0700 (PDT) In-Reply-To: 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" To: Fabrice Popineau Cc: Nick Dokos , "emacs-orgmode@gnu.org" --001a113e270405f3e3053d3626a2 Content-Type: text/plain; charset=UTF-8 I got it :) After reading http://orgmode.org/cgit.cgi/org-mode.git/tree/lisp/ob-shell.el#n57, I found I can simply specify the shell name in the block. On Fri, Sep 23, 2016 at 6:50 PM Fabrice Popineau < fabrice.popineau@centralesupelec.fr> wrote: > 2016-09-23 10:32 GMT+02:00 Xi Shen : > >> Hi, >> >> On my Windows system, I have Cygwin setup, with Emacs as part of the >> Cygwin installation. >> > > Cygwin Emacs is not a native Emacs (AFAIK). The difference is in the way > it groks pathnames > and other stuff like the default shell. > > I also setup my Cygwin environment to use zsh. I started my Emacs from >> this zsh environment. I think that's where org inherited this setting. >> >> I think when org execute my block, it some how assumed that it should use >> the same shell at the remote end. >> > > The portion of code I pointed out does not make sense to me and it may be > responsible for your problem. > > Fabrice > -- Thanks, David S. --001a113e270405f3e3053d3626a2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I got it :)

After reading=C2=A0htt= p://orgmode.org/cgit.cgi/org-mode.git/tree/lisp/ob-shell.el#n57, I foun= d I can simply specify the shell name in the block.


On Fri, Sep 23, 2016 at = 6:50 PM Fabrice Popineau <fabrice.popineau@centralesupelec.fr> wrote:
2016-09-23 10:32 GMT+02:00 Xi Shen &= lt;davidshen84@g= mail.com>:
Hi,

On my Windows system, I have Cygwin setup, with Ema= cs as part of the Cygwin installation.

Cygwin Emacs is not a native Emacs (AFAIK). The diffe= rence is in the way it groks pathnames
and other stuff like the d= efault shell.

I also setup my Cygwin environment to use zsh. I= started my Emacs from this zsh environment. I think that's where org i= nherited this setting.

I think when org execute my= block, it some how assumed that it should use the same shell at the remote= end.

The portion= of code I pointed out does not make sense to me and it may be responsible = for your problem.

Fabrice=C2=A0
--


Thanks,
David S.

--001a113e270405f3e3053d3626a2--