emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Oliver Večerník" <ov@vecernik.at>
To: emacs-orgmode@gnu.org
Subject: diff in `src' blocks
Date: Mon, 13 May 2013 09:33:00 +0200	[thread overview]
Message-ID: <877gj3pc5v.fsf@kerstf.org> (raw)

Hi,

in the following org file the second block gets not exported (tested with
text and html exporter, release_8.0.2-119-g646f1a):

--8<---------------cut here---------------start------------->8---
#+OPTIONS: toc:nil author:nil

#+BEGIN_SRC sh :exports results :results output
cat testdiff.txt.orig
#+END_SRC

#+BEGIN_SRC sh :exports results :results output
diff testdiff.txt.orig testdiff.txt
#+END_SRC

#+BEGIN_SRC sh :exports results :results output
diff testdiff.txt.orig testdiff.txt | cat
#+END_SRC

#+BEGIN_SRC sh :exports results :results output
ls testdiff.*
#+END_SRC
--8<---------------cut here---------------end--------------->8---

			       __________

				TESTDIFF
			       __________


,----
| asdf
| ghjk
`----

,----
| 1c1
| < asdf
| ---
| > qwer
`----

,----
| testdiff.html
| testdiff.org
| testdiff.txt
| testdiff.txt.orig
`----

Why is the `diff' command alone not exported while the piped `diff' via
`cat' works?  Is this this a bug?

-- 
Regards,
Oliver

             reply	other threads:[~2013-05-13  7:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-13  7:33 Oliver Večerník [this message]
2013-05-13  8:07 ` diff in `src' blocks Oliver Večerník
2013-05-13  8:32   ` Achim Gratz
2013-05-13  9:29     ` Oliver Večerník
2013-05-13  8:30 ` Achim Gratz
2013-05-13 17:59   ` Achim Gratz
2013-05-13 19:23     ` Samuel Wales
2013-05-14  9:07     ` Michael Brand
2013-05-14  9:12       ` Michael Brand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877gj3pc5v.fsf@kerstf.org \
    --to=ov@vecernik.at \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).