[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug or not a bug? dot expansion in ob-shell
From: |
Bastien |
Subject: |
Re: Bug or not a bug? dot expansion in ob-shell |
Date: |
Wed, 19 Feb 2020 22:32:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hi Diego,
Diego Zamboni <address@hidden> writes:
> I'm late to the discussion so I apologize in advance, 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 =:exports value= would return the exit
> code of the last command, and =:exports output= 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,
--
Bastien
- Re: Bug or not a bug? dot expansion in ob-shell, (continued)
- Re: Bug or not a bug? dot expansion in ob-shell, Fraga, Eric, 2020/02/19
- Re: Bug or not a bug? dot expansion in ob-shell, Bastien, 2020/02/19
- Re: Bug or not a bug? dot expansion in ob-shell, Fraga, Eric, 2020/02/19
- Re: Bug or not a bug? dot expansion in ob-shell, Bastien, 2020/02/19
- Re: Bug or not a bug? dot expansion in ob-shell, Diego Zamboni, 2020/02/19
- Re: Bug or not a bug? dot expansion in ob-shell, Samuel Wales, 2020/02/19
- Re: Bug or not a bug? dot expansion in ob-shell,
Bastien <=
- Re: Bug or not a bug? dot expansion in ob-shell, Nick Dokos, 2020/02/20
- Re: Bug or not a bug? dot expansion in ob-shell, Tim Cross, 2020/02/20
- Re: Bug or not a bug? dot expansion in ob-shell, Derek Feichtinger, 2020/02/21
- Re: Bug or not a bug? dot expansion in ob-shell, Bastien, 2020/02/21
- Re: Bug or not a bug? dot expansion in ob-shell, Nick Dokos, 2020/02/21
- Re: Bug or not a bug? dot expansion in ob-shell, Jack Kamm, 2020/02/22
- Re: Bug or not a bug? dot expansion in ob-shell, Bastien, 2020/02/22
- Re: Bug or not a bug? dot expansion in ob-shell, Stefan Nobis, 2020/02/23
- Re: Bug or not a bug? dot expansion in ob-shell, Bastien, 2020/02/23
- Re: Bug or not a bug? dot expansion in ob-shell, Jack Kamm, 2020/02/23