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: Mon, 17 Jan 2011 12:54:23 -0700 Message-ID: <874o97jofy.fsf@gmail.com> References: <80k4i3vgzo.fsf@missioncriticalit.com> <87tyh7jy6b.fsf@gmail.com> <80ei8b5nwq.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=46416 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PevA9-0003oJ-O2 for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 14:54:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PevA8-0003gF-6N for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 14:54:49 -0500 Received: from mail-gx0-f169.google.com ([209.85.161.169]:42399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PevA8-0003gA-1e for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 14:54:48 -0500 Received: by gxk5 with SMTP id 5so2423627gxk.0 for ; Mon, 17 Jan 2011 11:54:47 -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 >> >> and the sh code block expands to the following (with C-c C-v v) which is >> not affected by commas... > > I've no trouble with commas, except that it's not an American formatting = for > amounts. Though, I does well have problems, as showed, with the apostroph= e... > Sorry, I mis-typed, as far as I can tell the apostrophe works on my machine without causing any issues. > > Previewing does work for me as well: > >> #+begin_src sh >> data=3D$(cat <> Num.ro du compte :;979-9500975-24;Compte Maxi >> Date valeur;R.f.rence de l'op.ration;Description;Montant de >> l'op.ration;Devise;Date d'op.ration;Compte de contrepartie;Nom de la >> contrepartie :;Communication 1 :;Communication 2 : >> 04-06-2009;A9F04NT01WK300TG;Virem. internet;420,00;EUR;04-06-2009;799-= 5900947-23;PAYEE ONE; ;=20 >> 24-02-2009;A9B24NT012K4018Z;Virem. internet;-54,93;EUR;24-02-2009;799-= 9974005-30;ME;Eigen rekening;=20 >> 18-05-2008;A8E19NT000S604QI;Virem. internet;-1.000,00;EUR;19-05-2008;7= 99-8068445-18;PAYEE TWO; ; >> BABEL_STRING >> ) >> echo "$data" >> #+end_src > if you execute the previewed code block as an independent shell script on your machine does it throw errors or does it echo correctly? > > Evaluation does not. > >> Are you on a windows machine? I'm not sure what else could be different >> about the shell environment on our machines. > > Yes, it is on Windows=C2=A0;-) Though, with Cygwin bash support... which= should > behave as on any Linux... > >> note: some of the characters in your email weren't printable when I >> tried to send this with gnus, so they've been replaced with "."s > > These are French accentuated letters. > >>> Any idea on how to: >>> - circumvent such problem? >>> - or, eventually, do this better? > > No idea on any workaround, then? =C2=A0;-( > I can't reproduce the problem locally, and I believe that this is due to differences in our shell environments rather than Emacs-specific issues, so it is hard for me to diagnose or propose a solution. Sorry I can't be of more help -- Eric > > Best regards, > Seb