[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] using variables with :dir
From: |
Kyle Meyer |
Subject: |
Re: [O] using variables with :dir |
Date: |
Sat, 05 Sep 2015 23:36:04 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
"Arthur A. Gleckler" <address@hidden> writes:
> Is it possible to use variables with :dir? For example, I've tried this,
> but no substitution of ${SRFI} seems to happen:
>
> #+BEGIN_SRC sh :dir ~/srfi/split/srfi-${SRFI} :results output silent
> :session local
> git push
> #+END_SRC
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
--
Kyle