From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: using variables with :dir Date: Sat, 05 Sep 2015 23:36:04 -0400 Message-ID: <878u8kqkwr.fsf@kyleam.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYQkZ-0004BP-Cs for emacs-orgmode@gnu.org; Sat, 05 Sep 2015 23:36:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYQkW-0006uw-2U for emacs-orgmode@gnu.org; Sat, 05 Sep 2015 23:36:15 -0400 Received: from mail-qg0-f46.google.com ([209.85.192.46]:35920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYQkV-0006up-VI for emacs-orgmode@gnu.org; Sat, 05 Sep 2015 23:36:12 -0400 Received: by qgx61 with SMTP id 61so43024810qgx.3 for ; Sat, 05 Sep 2015 20:36:11 -0700 (PDT) In-Reply-To: (Arthur A. Gleckler's message of "Sat, 5 Sep 2015 20:08:55 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Arthur A. Gleckler" Cc: emacs-orgmode@gnu.org "Arthur A. Gleckler" 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