From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [babel] Sh problem when echo'ing input data with ' inside Date: Tue, 18 Jan 2011 18:31:12 +0100 Message-ID: <804o96dspr.fsf@missioncriticalit.com> References: <80k4i3vgzo.fsf@missioncriticalit.com> <87k4i3uwpm.fsf@Rainer.invalid> <87fwsrusac.fsf@Rainer.invalid> <80vd1n40k0.fsf@missioncriticalit.com> <80d3nuefcy.fsf@missioncriticalit.com> <87y66idvmi.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, "Eric Schulte" wrote: >> I asked the question on the Cygwin mailing list, and got an answer from = Tobias >> Schlottke, telling me to use the 'plain old' syntax (=3D`...`=3D instead= of >> =3D$(...)=3D): >> >> #+begin_src sh >> data=3D`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 That's, indeed, better than what I had in mind, as it now is customizable... ... and, of course, that does the trick! Thanks a lot for your prompt fix. BTW, I would, though, advice to make this the default, as it should be fully functional under any Linux, and then would be directly usable by any user on Windows/Cygwin, without having to wonder why sh code blocks don't work the = way they should. Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode