From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] how to pass data to gnuplot from another block Date: Fri, 13 Dec 2013 08:30:27 -0700 Message-ID: <87vbysahv0.fsf@gmail.com> References: <87d2lsbvy7.fsf@ucl.ac.uk> <87iovkihe6.fsf@gmail.com> <8738mol52h.fsf@alphaville.bos.redhat.com> <874n73gk70.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrUiS-00067d-Te for emacs-orgmode@gnu.org; Fri, 13 Dec 2013 10:31:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrUiO-0000k1-AC for emacs-orgmode@gnu.org; Fri, 13 Dec 2013 10:31:48 -0500 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]:48941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrUiO-0000jf-2O for emacs-orgmode@gnu.org; Fri, 13 Dec 2013 10:31:44 -0500 Received: by mail-pd0-f171.google.com with SMTP id z10so2627629pdj.2 for ; Fri, 13 Dec 2013 07:31:42 -0800 (PST) In-Reply-To: (Greg Troxel's message of "Fri, 13 Dec 2013 10:23:54 -0500") 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: Greg Troxel Cc: Nick Dokos , emacs-orgmode@gnu.org Greg Troxel writes: > Eric Schulte writes: > >>> Just an fyi: I had to set org-babel-sh-command to "bash" for this to >>> work. Why is "sh" the default value of this variable? >>> >> >> I think sh is more portable, but I guess almost any system should have >> bash as well, I've just changed this default to bash. > > (Assuming you mean that you changed the default in the org sources, not > in your config files.) > > Please don't, at least without discussion of the consequences of adding > a dependency that is beyond POSIX.. sh is specified by posix, and bash > is a) sometimes not present and b) behaves differently than as specified > by POSIX, leading people to write nonportable code. > > If someone wants to run bash explicitly, it makes sense to have a bash > language block that they can use. But the sh language block should be > sh. The real point is that bash is a different language. I understand your point, but in reality I doubt there are many systems on which people use Org-mode with code blocks and on which sh is available but no bash is installed. Bash is the new normal shell and I would argue is what most users expect from a shell code block. E.g., the default value of `shell-file-name' used by M-x shell is "/bin/bash". It is possible to explicitly set shell code blocks to use sh. Best, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D