From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Trouble passing variables into shell blocks on windows Date: Mon, 15 Jun 2015 10:12:25 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4PVW-0000M0-Tk for emacs-orgmode@gnu.org; Mon, 15 Jun 2015 04:12:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4PVT-0002jE-Gw for emacs-orgmode@gnu.org; Mon, 15 Jun 2015 04:12:38 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:36183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4PVT-0002is-BK for emacs-orgmode@gnu.org; Mon, 15 Jun 2015 04:12:35 -0400 Received: by wgzl5 with SMTP id l5so37243127wgz.3 for ; Mon, 15 Jun 2015 01:12:34 -0700 (PDT) In-Reply-To: ("Johan W. \=\?utf-8\?Q\?Kl\=C3\=BCwer\=22's\?\= message of "Sun, 14 Jun 2015 15:13:04 +0200") 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 To: "Johan W. =?utf-8?Q?Kl=C3=BCwer?=" Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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/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 > > 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? =2D-=20 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQEcBAEBCAAGBQJVfojtAAoJENvXNx4PUvmCCl8H/3j7cblyk1Z3r5U2rHjUgRNR DGM7wtT7tAyN8EmrN8lhC1lI6kqLaJo8MY++0u2H4zw/c5XzXlA686iEecmK/ufL Y9yHz+8zaQ+EqOgRnDV4TgjtuXRpZkzL9P/9zhi4GHlCG4qV1JRz3OHmfeYTwwSx y57pStqPWsoiEg9eTr1LF2WHS71RJJEN+rkBgH98rfea6Jq31cgHug7lsS3lHp/v zx0DEu7ZehKZ5wFx55gZOmBe5hbqqESfENUudByabZmEoJJkiOENwXLpITaW1VUy VwLJn9lTCf3PDEFTaivRE4xrKmLnXxPL5omOqtLMS5NkuaTz9f6PVC3eQ6EKt9k= =h2IT -----END PGP SIGNATURE----- --=-=-=--