From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henri-Paul Indiogine Subject: Using Code Blocks in Org Tables Date: Thu, 25 Aug 2011 20:49:59 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwnR2-00020b-Go for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 23:50:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwnR1-0006mu-CX for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 23:50:24 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:47359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwnR1-0006mk-2a for emacs-orgmode@gnu.org; Thu, 25 Aug 2011 23:50:23 -0400 Received: by bkbzt4 with SMTP id zt4so2565565bkb.0 for ; Thu, 25 Aug 2011 20:50:20 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-org I am trying to have the final output of several bash script appear in a summary table. I am trying to follow this example: http://orgmode.org/worg/org-contrib/babel/intro.html#spreadsheet This is my test system: -------------------------8<--------------------------->8--------------------- #+tblname: test #+CAPTION: test #+LABEL: tbl:test | collection | number | |----------------+----------------------| | congr-hearings | (("/home/henk") (2)) | | congr-bills | | | pres-docs | | | eric-docs | | #+TBLFM: @2$2='(sbe "test-sh") #+srcname: test-sh #+begin_src sh :results value x=2 echo $HOME echo $x #+end_src #+results: test-sh | /home/henk | | 2 | ---------------------------8<--------------------->8---------------- I want actually to have only the number "2" in cell @2$2. I thought that with ":results value" only the final output of the script, i.e. the output of "echo $x" would appear. Instead the results of all echo statement do appear. What am I doing wrongly? Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiogine@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~sindiogine