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 14:23:44 +0100 Message-ID: <87tv3m4snz.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> <87blpuiupn.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37914) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4PKN-0003Wq-Gq for emacs-orgmode@gnu.org; Wed, 19 Feb 2020 08:23:48 -0500 In-Reply-To: <87blpuiupn.fsf@gmail.com> (Tim Cross's message of "Thu, 20 Feb 2020 00:15:48 +1100") 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: Tim Cross Cc: emacs-orgmode@gnu.org Hi Tim, Tim Cross writes: > I'm not sure - need to think about it some more and go back through the > manual. My initial feeling is that the example block you show should > only return "Hello!" when you request output as the reuslts and > otherwise return the return value of echo (which is the exit code in > this case). Yes - my point in this thread is that for now it returns "Hello!" and I guess this is a natural thing to expect. > The main problem with the additional variable you propose is that you > would only want it enabled on some source blocks and not others, so it > might need to be settable as a header option to turn it on/off for a > specific block. Yes, hence the proposal to have :value-is-exit-code as a header arg. Let's find the right approach to this. Thanks, -- Bastien