Re: Adding #+name to result block in babel

2022-12-04 Thread Johan Tolö
Henrik Frisk writes: [snipped] Then you can use the result like this: #+begin_src sh :var value=my_result echo $value #+end_src #+RESULTS: : hello This does not use the result but rather reevaluates the "my_result" code block. Thank you! That was good to b

Re: Adding #+name to result block in babel

2022-11-29 Thread Henrik Frisk
Den tis 29 nov. 2022 kl 06:20 skrev Bill Burdick : > Hi Henrik, > > On Tue, Nov 29, 2022 at 2:11 AM Henrik Frisk wrote: > >> Hi, >> >> Maybe I'm missing something obvious but is it possible to have a name be >> added to the result block such as running: >> >> #+begin_src shell >> echo "Hello" >

Re: Adding #+name to result block in babel

2022-11-28 Thread Bill Burdick
Hi Henrik, On Tue, Nov 29, 2022 at 2:11 AM Henrik Frisk wrote: > Hi, > > Maybe I'm missing something obvious but is it possible to have a name be > added to the result block such as running: > > #+begin_src shell > echo "Hello" > #+end_src > > results in > > #+RESULTS: > #+name: my_result > :

Adding #+name to result block in babel

2022-11-28 Thread Henrik Frisk
Hi, Maybe I'm missing something obvious but is it possible to have a name be added to the result block such as running: #+begin_src shell echo "Hello" #+end_src results in #+RESULTS: #+name: my_result : Hello Thank you!