From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Bug or not a bug? dot expansion in ob-shell Date: Wed, 19 Feb 2020 22:32:10 +0100 Message-ID: <8736b66z6t.fsf@gnu.org> References: <87eeur3p1p.fsf@ucl.ac.uk> <87a75eap8k.fsf@gnu.org> <87y2sy3kkl.fsf@ucl.ac.uk> <87r1yq4xiz.fsf@gnu.org> <875zg2kcy0.fsf@ucl.ac.uk> <87h7zmiw0v.fsf@gmail.com> <871rqqag19.fsf@bzg.fr> <87wo8iitzz.fsf@ucl.ac.uk> <87ftf63d79.fsf@gnu.org> <87pnear7tl.fsf@ucl.ac.uk> <87v9o236v1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58283) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4Wx6-0008F5-1m for emacs-orgmode@gnu.org; Wed, 19 Feb 2020 16:32:17 -0500 In-Reply-To: (Diego Zamboni's message of "Wed, 19 Feb 2020 20:43:58 +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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Diego Zamboni Cc: Tim Cross , "emacs-orgmode@gnu.org" , "Fraga, Eric" Hi Diego, Diego Zamboni writes: > I'm late to the discussion so=C2=A0I apologize in=C2=A0advance, but this = fix > seems counterintuitive to me. In my mind, for any shell code: > > - Return value: exit code of the last command > - Output: whatever the commands print Yes, that's what is *now* possible if you set ob-shell-return-value-is-exit-status to t. Unless I miss something, it was not possible before today. #+begin_src shell echo Hello! #+end_src would simply return "Hello!" as a return. No exit code was *never* output. > So to me, it's intuitive that =3D:exports value=3D would return the exit > code of the last command, and =3D:exports output=3D would produce the > output of the commands. I don't understand why a new option is > needed. ... because it was not the case before. Or maybe *I* miss something. Can you show me something that was working before and that is not anymore? Thanks, --=20 Bastien