[Top][All Lists]
[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
- [Orgmode] Re: [babel] Sh problem when echo'ing input data with ' inside, (continued)
[Orgmode] Re: [babel] Sh problem when echo'ing input data with ' inside, Achim Gratz, 2011/01/17
[Orgmode] Re: [babel] Sh problem when echo'ing input data with ' inside, Achim Gratz, 2011/01/18
[Orgmode] Re: [babel] Sh problem when echo'ing input data with ' inside, Achim Gratz, 2011/01/20
[Orgmode] Re: [babel] Sh problem when echo'ing input data with ' inside, Sébastien Vauban, 2011/01/20