From: Andy Moreton <andrewjmoreton@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Trouble passing variables into shell blocks on windows
Date: Tue, 16 Jun 2015 14:28:32 +0100 [thread overview]
Message-ID: <vz1zj3zaikf.fsf@gmail.com> (raw)
In-Reply-To: CAC5XeFFdGL6bxvaUuOU7Ns16nZWVgJ94iZVQsX_+DQ3iWLXSJg@mail.gmail.com
On Sun 14 Jun 2015, Johan W. Klüwer wrote:
> 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)
>
> 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?
I can reproduce this using the native Windows build of emacs. If you are
using cygwin tools, consider using a cygwin build of emacs, which will
not suffer from this problem.
If you running an X server then the cygwin emacs-X11 package is what you
need. If you don't want to run an X server then the emacs-w32 package
may fit your needs (a cygwin native build of emacs that uses the Windows
GUI for display).
HTH,
AndyM
prev parent reply other threads:[~2015-06-16 13:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-14 13:13 Trouble passing variables into shell blocks on windows Johan W. Klüwer
2015-06-15 8:12 ` Rainer M Krug
2015-06-23 7:28 ` Johan W. Klüwer
2015-06-23 8:50 ` Sebastien Vauban
2015-06-16 13:28 ` Andy Moreton [this message]
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=vz1zj3zaikf.fsf@gmail.com \
--to=andrewjmoreton@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).