From: Kalev Takkis <kalev.takkis@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Babel, shell variable expansion in noweb function call
Date: Sun, 6 Sep 2015 17:58:18 +0300 [thread overview]
Message-ID: <CAMeOJK5Y9gqkcSV8s36vAertETrAh6=MyFZQRNzT1ZeQ02+dNw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 461 bytes --]
Hi list,
I'm struggling with the following example and failing get it to work:
#+begin_src bash :results value code :noweb yes
p1="/foo/bar"
p2="/foo/baz/foo"
rpath=<<relative_path(path1="$p1", path2="$p2")>>
#+end_src
If the parameters are given as values such as path1="/foo/bar", the
function works as expected, from which I deduce that the problem must be in
parameter expansion. Is it? If yes, is there a solution?
All the best,
Kalev
[-- Attachment #2: Type: text/html, Size: 662 bytes --]
reply other threads:[~2015-09-06 14:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CAMeOJK5Y9gqkcSV8s36vAertETrAh6=MyFZQRNzT1ZeQ02+dNw@mail.gmail.com' \
--to=kalev.takkis@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).