From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [babel] Sh problem when echo'ing input data with ' inside Date: Tue, 18 Jan 2011 09:24:51 -0700 Message-ID: <87y66idvmi.fsf@gmail.com> References: <80k4i3vgzo.fsf@missioncriticalit.com> <87k4i3uwpm.fsf@Rainer.invalid> <87fwsrusac.fsf@Rainer.invalid> <80vd1n40k0.fsf@missioncriticalit.com> <80d3nuefcy.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=47195 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfEUD-0003Lp-45 for emacs-orgmode@gnu.org; Tue, 18 Jan 2011 11:33:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfEPy-00046Z-Dv for emacs-orgmode@gnu.org; Tue, 18 Jan 2011 11:28:33 -0500 Received: from mail-pw0-f41.google.com ([209.85.160.41]:40971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfEPy-00042P-2r for emacs-orgmode@gnu.org; Tue, 18 Jan 2011 11:28:26 -0500 Received: by mail-pw0-f41.google.com with SMTP id 8so1450267pwj.0 for ; Tue, 18 Jan 2011 08:28:25 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org > > 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 > ` > 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