emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xi Shen <davidshen84@gmail.com>
To: Fabrice Popineau <fabrice.popineau@centralesupelec.fr>
Cc: Nick Dokos <ndokos@gmail.com>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: How to use org mode shell with ssh?
Date: Sat, 24 Sep 2016 00:40:48 +0000	[thread overview]
Message-ID: <CANO68EMhLHOLrAOGZfsMANR+NQ0DnkSfRzN-KWpWYG7S1p6Sqw@mail.gmail.com> (raw)
In-Reply-To: <CAFgFV9OPt3_qC+DxUEjOyOd4Ww9MoeLHa+D1ecM_XqbLDBMVHg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 980 bytes --]

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 <davidshen84@gmail.com>:
>
>> 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.

[-- Attachment #2: Type: text/html, Size: 2358 bytes --]

  reply	other threads:[~2016-09-24  0:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22  1:02 How to use org mode shell with ssh? Xi Shen
2016-09-22  1:15 ` William Denton
2016-09-22  8:52   ` Colin Baxter
2016-09-22 12:15     ` Xi Shen
2016-09-22 12:37       ` Xi Shen
2016-09-22 14:00         ` Colin Baxter
2016-09-22 14:45           ` David A. Gershman
2016-09-22 14:52           ` Nick Dokos
2016-09-22 20:30             ` Fabrice Popineau
2016-09-23  8:32               ` Xi Shen
2016-09-23 10:49                 ` Fabrice Popineau
2016-09-24  0:40                   ` Xi Shen [this message]
2016-09-22 14:38         ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANO68EMhLHOLrAOGZfsMANR+NQ0DnkSfRzN-KWpWYG7S1p6Sqw@mail.gmail.com \
    --to=davidshen84@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fabrice.popineau@centralesupelec.fr \
    --cc=ndokos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).