emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: [babel] Sh problem when echo'ing input data with ' ins


From: Eric Schulte
Subject: Re: [Orgmode] Re: [babel] Sh problem when echo'ing input data with ' inside
Date: Tue, 18 Jan 2011 09:24:51 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>
> I asked the question on the Cygwin mailing list, and got an answer from Tobias
> Schlottke, telling me to use the 'plain old' syntax (=`...`= instead of
> =$(...)=):
>
> #+begin_src sh
> data=`cat <<EOF
> ...
> EOF
> `
> echo "$data"
> #+end_src
>
> and... it indeed works!
>
> Can we move to that syntax?
>

I just made this customizable, after a git pull the following elisp code
will use that syntax on your system.

#+begin_src emacs-lisp
  (setq org-babel-sh-var-quote-fmt "`cat <<'BABEL_TABLE'\n%s\nBABEL_TABLE\n`")
#+end_src

Best -- Eric



reply via email to

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