From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Welle Subject: Re: ob-shell and remote shells Date: Wed, 29 Nov 2017 08:13:21 +0100 Message-ID: <874lpdzhf2.fsf@luisa.c0t0d0s0.de> References: <87609ug5ae.fsf@luisa.c0t0d0s0.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJwYk-0005BX-Ha for emacs-orgmode@gnu.org; Wed, 29 Nov 2017 02:13:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJwYe-0003lC-RS for emacs-orgmode@gnu.org; Wed, 29 Nov 2017 02:13:29 -0500 Received: from mout.gmx.net ([212.227.15.19]:59751) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJwYe-0003iX-Gn for emacs-orgmode@gnu.org; Wed, 29 Nov 2017 02:13:24 -0500 Received: from stella.c0t0d0s0.de ([194.95.66.1]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LlE86-1ercgO16Yw-00b333 for ; Wed, 29 Nov 2017 08:13:22 +0100 Received: from Stella (stella.c0t0d0s0.de [192.168.42.1]) by stella.c0t0d0s0.de (Postfix) with ESMTP id BED04C419C for ; Wed, 29 Nov 2017 08:13:21 +0100 (CET) In-Reply-To: (numbchild@gmail.com's message of "Wed, 29 Nov 2017 14:17:18 +0800") 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: emacs-orgmode@gnu.org Hello, "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