From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Johan_W=2E_Kl=C3=BCwer?= Subject: Re: Trouble passing variables into shell blocks on windows Date: Tue, 23 Jun 2015 09:28:40 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec51d2350e73b5305192a568c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7IdR-0003AS-5j for emacs-orgmode@gnu.org; Tue, 23 Jun 2015 03:28:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7IdP-0008Fb-0L for emacs-orgmode@gnu.org; Tue, 23 Jun 2015 03:28:44 -0400 Received: from mail-ig0-x22e.google.com ([2607:f8b0:4001:c05::22e]:36167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7IdO-0008Eb-Ol for emacs-orgmode@gnu.org; Tue, 23 Jun 2015 03:28:42 -0400 Received: by igbiq7 with SMTP id iq7so69656179igb.1 for ; Tue, 23 Jun 2015 00:28:41 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: emacs-orgmode@gnu.org --bcaec51d2350e73b5305192a568c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you for the information -- I suppose the cygwin version of emacs may be the only viable option. Still that seems like quite a big change, swapping emacs versions, just for this particular feature. 2015-06-15 10:12 GMT+02:00 Rainer M Krug : > Johan W. Kl=C3=BCwer writes: > > > I'm having difficulties passing org variables into shell source blocks. > > This is using Windows 7 and Cygwin with bash shell. For instance, the > > following > > > > #+BEGIN_SRC sh :var x=3D"." > > ls $x > > #+END_SRC > > > > fails with the error message (as displayed in emacs) > > Works on OS X Yosemite, > > ,---- > | Org-mode version 8.3beta (release_8.3beta-1209-gc532ff @ > /Users/rainerkrug/.emacs.d/org-mode/lisp/) > | GNU Emacs 24.5.1 (x86_64-apple-darwin14.3.0, Carbon Version 157 AppKit > 1347.57) of 2015-04-13 on Rainers-MacBook-Pro.local > `---- > > Cheers, > > Rainer > > > > > ls: cannot access .^M^M : No such file or directory > > > > > > As far as I can see, the first ^M stems from org-babel-sh-var-quote-fmt= , > > and the second from org-babel-expand-body:generic, but I haven't been > able > > to figure out a solution. Any suggestions? > > -- > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation > Biology, UCT), Dipl. Phys. (Germany) > > Centre of Excellence for Invasion Biology > Stellenbosch University > South Africa > > Tel : +33 - (0)9 53 10 27 44 > Cell: +33 - (0)6 85 62 59 98 > Fax : +33 - (0)9 58 10 27 44 > > Fax (D): +49 - (0)3 21 21 25 22 44 > > email: Rainer@krugs.de > > Skype: RMkrug > > PGP: 0x0F52F982 > --bcaec51d2350e73b5305192a568c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you for the information -- I suppose the cygwin= version of emacs may be the only viable option. Still that seems like quit= e a big change, swapping emacs versions, just for this particular feature.<= br>

20= 15-06-15 10:12 GMT+02:00 Rainer M Krug <Rainer@krugs.de>:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">Johan W. Kl=C3=BCwer <johan.w.kluwer@gmail.com> w= rites:

> I'm having difficulties passing org variables into shell source bl= ocks.
> This is using Windows 7 and Cygwin with bash shell. For instance, the<= br> > following
>
> #+BEGIN_SRC sh :var x=3D"."
>=C2=A0 =C2=A0ls $x
> #+END_SRC
>
> fails with the error message (as displayed in emacs)

Works on OS X Yosemite,

,----
| Org-mode version 8.3beta (release_8.3beta-1209-gc532ff @ /Users/rainerkru= g/.emacs.d/org-mode/lisp/)
| GNU Emacs 24.5.1 (x86_64-apple-darwin14.3.0, Carbon Version 157 AppKit 13= 47.57) of 2015-04-13 on Rainers-MacBook-Pro.local
`----

Cheers,

Rainer

>
>=C2=A0 =C2=A0ls: cannot access .^M^M : No such file or directory
>
>
> As far as I can see, the first ^M stems from org-babel-sh-var-quote-fm= t,
> and the second from org-babel-expand-body:generic, but I haven't b= een able
> to figure out a solution. Any suggestions?

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :=C2=A0 =C2=A0 =C2=A0 =C2=A0+33 - (0)9 53 10 27 44
Cell:=C2=A0 =C2=A0 =C2=A0 =C2=A0+33 - (0)6 85 62 59 98
Fax :=C2=A0 =C2=A0 =C2=A0 =C2=A0+33 - (0)9 58 10 27 44

Fax (D):=C2=A0 =C2=A0 +49 - (0)3 21 21 25 22 44

email:=C2=A0 =C2=A0 =C2=A0 Rainer@krugs.= de

Skype:=C2=A0 =C2=A0 =C2=A0 RMkrug

PGP: 0x0F52F982

--bcaec51d2350e73b5305192a568c--