"Arthur A. Gleckler" <o...@speechcode.com> 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

Reply via email to