emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] 2 Org tests failing


From: Achim Gratz
Subject: Re: [O] 2 Org tests failing
Date: Thu, 19 Jun 2014 22:05:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux)

Sebastien Vauban writes:
> I just ran `make test' and got the same error for
> `ob-shell/bash-uses-assoc-arrays'.

Yes, that's because not all versions of bash that have associative
arrays can parse the bizarre quoting style that goes through a
sub-process and here-document that is used to fill in the parameters.

A better quoting function would be

(defun org-babel-sh-var-to-sh (var &optional sep hline)
  "Convert an elisp value to a shell variable.
Convert an elisp var into a string of shell commands specifying a
var of the same value."
  (concat "'" (replace-regexp-in-string
               "'" "'\"'\"'"
               (org-babel-sh-var-to-string var sep hline))
          "'"))

(and remove the double quotes around the places where the value is going
to be used). It'd have the advantage of working with more types of
shells, but I'm not 100% certain that there aren't any corner cases.

> BTW, how can I avoid compiling the source directory before launching the
> tests?  I prefer having only .el files, as I was mistaken multiple times
> when trying to understand executions of code I modified.

Take a few minutes and read:
http://orgmode.org/worg/dev/org-build-system.html


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada




reply via email to

[Prev in Thread] Current Thread [Next in Thread]