emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Welle <mwe012008@gmx.net>
To: emacs-orgmode@gnu.org
Subject: Re: ob-shell and remote shells
Date: Wed, 29 Nov 2017 08:13:21 +0100	[thread overview]
Message-ID: <874lpdzhf2.fsf@luisa.c0t0d0s0.de> (raw)
In-Reply-To: <CAL1eYu+pUwzhz1iDbnkRnuVa_rF4AQpT79MLzSFiu8GwR8c3Ag@mail.gmail.com> (numbchild@gmail.com's message of "Wed, 29 Nov 2017 14:17:18 +0800")

Hello,


"numbchild@gmail.com" <numbchild@gmail.com> writes:

> Off the topic, I'm curious what is the `:session` in `ob-shell` ?
it basically means that state is preserved for code blocks that run in
the same session (as long as the interpreter is running). Or in other
words, imagine two code blocks: the first sets a variable, the second
prints the variable. Without sessions the code blocks run in different
shell instances and the second block doesn't 'see' the variable set by
the first code block. But if both run in the same session, the second
code block 'sees' the state left by the first code block.

Regard
hmw

      reply	other threads:[~2017-11-29  7:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-28  8:45 ob-shell and remote shells Michael Welle
2017-11-29  6:17 ` numbchild
2017-11-29  7:13   ` Michael Welle [this message]

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=874lpdzhf2.fsf@luisa.c0t0d0s0.de \
    --to=mwe012008@gmx.net \
    --cc=emacs-orgmode@gnu.org \
    /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).