From: "Eric Schulte" <schulte.eric@gmail.com>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: [babel] Sh problem when echo'ing input data with ' inside
Date: Mon, 17 Jan 2011 12:54:23 -0700 [thread overview]
Message-ID: <874o97jofy.fsf@gmail.com> (raw)
In-Reply-To: 80ei8b5nwq.fsf@missioncriticalit.com
>>
>> 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 apostrophe...
>
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=$(cat <<BABEL_STRING
>> 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; ;
>> 24-02-2009;A9B24NT012K4018Z;Virem. internet;-54,93;EUR;24-02-2009;799-9974005-30;ME;Eigen rekening;
>> 18-05-2008;A8E19NT000S604QI;Virem. internet;-1.000,00;EUR;19-05-2008;799-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 ;-) 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? ;-(
>
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
next prev parent reply other threads:[~2011-01-17 19:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-17 12:42 [babel] Sh problem when echo'ing input data with ' inside Sébastien Vauban
2011-01-17 16:24 ` Eric Schulte
2011-01-17 19:29 ` Sébastien Vauban
2011-01-17 19:54 ` Eric Schulte [this message]
2011-01-17 22:49 ` Sébastien Vauban
2011-01-17 20:00 ` Achim Gratz
2011-01-17 20:29 ` Eric Schulte
2011-01-17 21:36 ` Achim Gratz
2011-01-17 22:39 ` Sébastien Vauban
2011-01-17 22:51 ` Achim Gratz
2011-01-18 7:02 ` Sébastien Vauban
2011-01-18 9:22 ` Sébastien Vauban
2011-01-18 16:24 ` Eric Schulte
2011-01-18 17:31 ` Sébastien Vauban
2011-01-18 18:23 ` Achim Gratz
2011-01-20 19:17 ` Achim Gratz
2011-01-20 22:12 ` Sébastien Vauban
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874o97jofy.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=wxhgmqzgwmuf@spammotel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).