From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: errors setting sh arrays Date: Wed, 26 Dec 2012 09:03:33 -0700 Message-ID: <87obhgiywa.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TntSK-0006Pp-HF for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 11:03:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TntSG-0003iT-Oy for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 11:03:44 -0500 Received: from mail-vb0-f54.google.com ([209.85.212.54]:52776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TntSG-0003iO-Ky for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 11:03:40 -0500 Received: by mail-vb0-f54.google.com with SMTP id l1so8965277vba.27 for ; Wed, 26 Dec 2012 08:03:40 -0800 (PST) In-Reply-To: (George Jones's message of "Wed, 26 Dec 2012 09:34:34 -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: George Jones Cc: gmj@pobox.com, emacs-orgmode@gnu.org George Jones writes: > Next up, it seems that I have to use a :session to set arrays in sh code on > a remote system or you get a shell syntax error. See attached .org file Despite the value of the SHELL environment variable, it appears that a non-bash shell which doesn't support arrays is being used on the remote systems. Have you tried setting either the `org-babel-sh-command' or adding a :shebang header argument to the code blocks to force the execution to use bash? Hope this helps, -- Eric Schulte http://cs.unm.edu/~eschulte