emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Arthur A. Gleckler" <org@speechcode.com>
To: Kyle Meyer <kyle@kyleam.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: using variables with :dir
Date: Sat, 5 Sep 2015 21:17:56 -0700	[thread overview]
Message-ID: <CALnw4LJ1LxZ0OwxQhO=BJjx_F95BQ1UhO0AA_s1KvfxV=6qhQA@mail.gmail.com> (raw)
In-Reply-To: <878u8kqkwr.fsf@kyleam.com>

[-- Attachment #1: Type: text/plain, Size: 554 bytes --]

On Sat, Sep 5, 2015 at 8:36 PM, Kyle Meyer <kyle@kyleam.com> wrote:


> There may be a better way, but this seems to work.
>
> #+begin_src sh :dir (substitute-in-file-name "$HOME/.emacs.d/") :results
> output
>   ls | tail -2
> #+end_src
>
> #+RESULTS:
> : tramp
> : url
>
> Thanks.  While that does substitute for $HOME, it doesn't substitute for
$SRFI, which isn't in Emacs's process environment.

I've found a way to work around it.  I don't use :dir at all:

#+BEGIN_SRC sh :results output silent
  cd ~/srfi/split/srfi-${SRFI}/
  git push
#+END_SRC

[-- Attachment #2: Type: text/html, Size: 1290 bytes --]

      reply	other threads:[~2015-09-06  4:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-06  3:08 using variables with :dir Arthur A. Gleckler
2015-09-06  3:36 ` Kyle Meyer
2015-09-06  4:17   ` Arthur A. Gleckler [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='CALnw4LJ1LxZ0OwxQhO=BJjx_F95BQ1UhO0AA_s1KvfxV=6qhQA@mail.gmail.com' \
    --to=org@speechcode.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kyle@kyleam.com \
    /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).