On Sat, Sep 5, 2015 at 8:36 PM, Kyle Meyer 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