[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] using variables with :dir

From: Arthur A. Gleckler
Subject: Re: [O] using variables with :dir
Date: Sat, 5 Sep 2015 21:17:56 -0700

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

: 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]