all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* babel sh session eats '>' after first src block
@ 2014-04-26 15:20 George Jones
  2014-04-26 16:53 ` Achim Gratz
  0 siblings, 1 reply; 2+ messages in thread
From: George Jones @ 2014-04-26 15:20 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

This may be expected behavior, but it was unexpected to me:
'>' in sh :session output eaten after first src block.

Clues, RFTMs (I tried), workarounds?

Thanks,
---George Jones

----------------------------redirect-test.org---------------------

* Session output with ">" works first time, not subsequent times

  #+BEGIN_SRC sh
  echo 'one > two' > foobar.txt
  #+END_EXAMPLE

  #+BEGIN_SRC sh :results output :exports both :session session1
  cat foobar.txt
  #+END_SRC

  #+RESULTS:
  :
  : one > two


  #+BEGIN_SRC sh :results output :exports both :session session1
  cat foobar.txt
  #+END_SRC

  #+RESULTS:
  :
  : two

[-- Attachment #2: Type: text/html, Size: 1099 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: babel sh session eats '>' after first src block
  2014-04-26 15:20 babel sh session eats '>' after first src block George Jones
@ 2014-04-26 16:53 ` Achim Gratz
  0 siblings, 0 replies; 2+ messages in thread
From: Achim Gratz @ 2014-04-26 16:53 UTC (permalink / raw)
  To: emacs-orgmode

George Jones writes:
> This may be expected behavior, but it was unexpected to me:
> '>' in sh :session output eaten after first src block.
>
> Clues, RFTMs (I tried), workarounds?

The session buffer is not correctly parsed and the output for the
variable initialization and the actual body commands gets mixed up.
Additionally, sessioin evaluation ignores the selected shell language
and always uses the standard shell for the user.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-26 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-26 15:20 babel sh session eats '>' after first src block George Jones
2014-04-26 16:53 ` Achim Gratz

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.