From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Re: [Babel] Reporting 2 problems of code execution Date: Mon, 29 Nov 2010 08:47:49 -0800 Message-ID: References: <80wrnxi59j.fsf@missioncriticalit.com> <80pqtoijrw.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1845196676-1291049269=:12333" Return-path: Received: from [140.186.70.92] (port=37410 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PN6tM-0002rk-9V for emacs-orgmode@gnu.org; Mon, 29 Nov 2010 11:47:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PN6tL-0005RG-4V for emacs-orgmode@gnu.org; Mon, 29 Nov 2010 11:47:52 -0500 Received: from tajo.ucsd.edu ([137.110.122.165]:43086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PN6tK-0005Qx-TO for emacs-orgmode@gnu.org; Mon, 29 Nov 2010 11:47:51 -0500 In-Reply-To: <80pqtoijrw.fsf@missioncriticalit.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien_Vauban?= Cc: emacs-orgmode@gnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1845196676-1291049269=:12333 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 29 Nov 2010, S=C3=A9bastien Vauban wrote: > Hi Charles, > > Thanks a lot for taking a look at this, too... > > "Charles C. Berry" wrote: >> On Sun, 28 Nov 2010, S=C3=A9bastien Vauban wrote: >>> Hi Eric and Dan, >>> >>> * Abstract >>> >>> Reporting two problems: >> >> Did you mean to include ":results output" in the headers? > > You're right that could be it. I often forget about adding that setting, = even > though it's more or less mandatory for the sh blocks -- at least, in many= sh > blocks I write... > > >> When I do that in eaco of the src blocks I get what I think you were >> expecting. > > I still don't. See below. > > [deleted] >> >> #+begin_src sh :results output :var data=3Da-couple-of-lines :exports bo= th >> echo "$data" >> #+end_src >> >> #+results: >> : He said "I'll do it" >> : but that cannot be echo'ed! > > It does not work for me. With the above, I (still) get: > > #+results: > #+BEGIN_RESULT > #+END_RESULT > > for results, and, in the *Org-Babel Error Output*: > > --8<---------------cut here---------------start------------->8--- > sh: line 3: unexpected EOF while looking for matching `'' > sh: line 7: syntax error: unexpected end of file > --8<---------------cut here---------------end--------------->8--- > > Hmmm. So it looks like 'sh' is having some trouble here. Can you run the same code directly in the shell? That is can you set/export $data and then 'echo $data' at the command line [deleted] >> >> #+begin_src emacs-lisp results output :var data=3Da-couple-of-lines :exp= orts both >> (prin1-to-string data) >> #+end_src >> >> #+results: >> : "He said \"I'll do it\" >> : but that cannot be echo'ed!" > > With or without the ":results output" (BTW, notice you've forgotten the c= olon > in front of results), the result is the same. But, if you evaluate the bl= ock > multiple times, in my case, the end marker (end_example) is still repeate= d... > Sorry 'bout the missing ":" - it outputs the same results either way on my= =20 box. Chuck [rest deleted] Charles C. Berry Dept of Family/Preventive Medic= ine cberry@tajo.ucsd.edu=09=09=09 UC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901 --8323328-1845196676-1291049269=:12333 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --8323328-1845196676-1291049269=:12333--