emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Trouble passing variables into shell blocks on windows


From: Rainer M Krug
Subject: Re: [O] Trouble passing variables into shell blocks on windows
Date: Mon, 15 Jun 2015 10:12:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

Johan W. Klüwer <address@hidden> 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="."
>   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:      address@hidden

Skype:      RMkrug

PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]