From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pascal Fleury Subject: Re: Export arrays for 'sh' code blocks when using bash Date: Wed, 23 Apr 2014 16:13:22 +0200 Message-ID: References: <871txn1qni.fsf@bagel.gateway.pace.com> <871txkff89.fsf@gmail.com> <871tx4zj3i.fsf@gmail.com> <8761mg3sry.fsf@bzg.ath.cx> <87fvlfs1oh.fsf@gmail.com> <87r44p4bpj.fsf@bzg.ath.cx> <87zjjd2i8z.fsf@bzg.ath.cx> <877g6h2h5j.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec50fdff397744304f7b65790 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcxvu-0005GA-Ak for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 10:13:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wcxvt-0008Ne-Hn for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 10:13:54 -0400 Received: from mail-vc0-x230.google.com ([2607:f8b0:400c:c03::230]:42929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcxvt-0008NY-CD for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 10:13:53 -0400 Received: by mail-vc0-f176.google.com with SMTP id lc6so1211933vcb.35 for ; Wed, 23 Apr 2014 07:13:52 -0700 (PDT) In-Reply-To: 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: Skip Collins Cc: Bastien , emacs-org list --bcaec50fdff397744304f7b65790 Content-Type: text/plain; charset=UTF-8 Hi, Yes that is a test I added, and did not think of older versions of bash (have not used bash3 in quite a long time :-) Actually, if we have bash3, then we should not use the associative arrays at all, but fallback to the lists. Will give it a go. --paf On Wed, Apr 23, 2014 at 3:51 PM, Skip Collins wrote: > On Tue, Apr 22, 2014 at 5:22 PM, Bastien wrote: > > Mhh... okay then, thanks for mentioning it. > > The stackoverflow link contains what appears to be a good workaround > that functions in old and new versions of bash. Perhaps Pascal Fleury > could modify the org code to avoid using 'declare -A' when bash > version < 4. > -- --paf --bcaec50fdff397744304f7b65790 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
Yes that is a test I added, and did not think of o= lder versions of bash (have not used bash3 in quite a long time :-)

Actually, if we have bash3, then we should not use the as= sociative arrays at all, but fallback to the lists.
Will give it a go.

--paf


On Wed, Apr 23, 2014 a= t 3:51 PM, Skip Collins <skip.collins@gmail.com> wrote:=
On Tue, Apr 22, 2014 at 5:22= PM, Bastien <bzg@gnu.org> wrote:<= br> > Mhh... okay then, thanks for mentioning it.

The stackoverflow link contains what appears to be a good workaround<= br> that functions in old and new versions of bash. Perhaps Pascal Fleury
could modify the org code to avoid using 'declare -A' when bash
version < 4.



--
--paf
--bcaec50fdff397744304f7b65790--