From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: No output from babel shell src block Date: Thu, 12 May 2016 14:24:47 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0wE6-0005lO-1Y for emacs-orgmode@gnu.org; Thu, 12 May 2016 15:24:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0wE4-0000lu-L8 for emacs-orgmode@gnu.org; Thu, 12 May 2016 15:24:49 -0400 Received: from mail-vk0-x22c.google.com ([2607:f8b0:400c:c05::22c]:36053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0wE4-0000lo-G9 for emacs-orgmode@gnu.org; Thu, 12 May 2016 15:24:48 -0400 Received: by mail-vk0-x22c.google.com with SMTP id s184so110386588vkb.3 for ; Thu, 12 May 2016 12:24:48 -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" To: emacs-orgmode Hello, I've not used shell in babel much, and am confused. I was trying to include diff output from a block in an analysis and it's not giving any output. As a test, I have a.txt which contains 1 and b.txt which contains 2, with boths in ~/Desktop. Manually: $ cd ~/Desktop $ diff a.txt b.txt 1c1 < 1 --- > 2 Org: #+begin_src shell cd ~/Desktop diff a.txt b.txt #+end_src I get "Code block produced no output" with C-c C-c. If I replace the diff line with =pwd=, it puts the current directory in the results block (works as expected). I've tried replace, append, output, raw, and value for :results, as well as results and both for :exports. I've also tried using a #+name: which gives me a results block for the output, but it's empty. Am I missing something? Perhaps there's an analog for how some programs need a print() of some kind for the results to show up? Then again, I don't know why =pwd= works... There's no worg page for the shell language (surprised me!). Thanks, John