mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-30 15:37:53 +00:00
3c7e75ab0b
* lisp/ob-shell.el: added support to serialize vars as arrays or associative arrays as appropriate if it is using bash. * testing/examples/ob-shell-test.org: a file containing a few code blocks both illustrating the use of arrays as well as serving as test for the new export functionality. * testing/lisp/test-ob-shell.el: added a few unit tests that verify that this new logic only triggers for bash and no other shell at this time. When variables are defined in a 'sh' code block, they are exported as strings. when the variable itself is an array or a table, then we simply get a shell variable that contains the list of all values in a non-structured form. When calling the code block with bash, however, it will now export the list as an array, the table as an associative array. A scalar is exported the same way as before. Signed-off-by: Pascal Fleury <fleury@google.com> |
||
---|---|---|
.. | ||
babel-dangerous.org | ||
babel.org | ||
include.org | ||
include2.org | ||
link-in-heading.org | ||
links.org | ||
macro-templates.org | ||
no-heading.org | ||
normal.org | ||
ob-awk-test.in | ||
ob-awk-test.org | ||
ob-C-test.org | ||
ob-fortran-test.org | ||
ob-header-arg-defaults.org | ||
ob-lilypond-broken.ly | ||
ob-lilypond-broken.org | ||
ob-lilypond-test.error | ||
ob-lilypond-test.ly | ||
ob-lilypond-test.org | ||
ob-maxima-test.org | ||
ob-octave-test.org | ||
ob-screen-test.org | ||
ob-shell-test.org | ||
org-exp.org | ||
property-inheritance.org | ||
setupfile.org |