Re: [O] passing string to sh source code block

2019-03-16 Thread Daniel Herzig
Sorry, I found my mistake. I'll post it anyway, maybe it's of use to someone. My path contains spaces, so I had to change the code a bit (see below). Daniel Herzig writes: > Hi! > > I am trying to pass a path to an org-source-codeblock using the :var tag > in the header: > > #+BEGIN_SRC sh :var

[O] passing string to sh source code block

2019-03-16 Thread Daniel Herzig
Hi! I am trying to pass a path to an org-source-codeblock using the :var tag in the header: #+BEGIN_SRC sh :var directory="/x/y/z" cd directory ls #+END_SRC The output of the ls command shows that I obviously stay in the location of my .org file (not "/x/y/z") -- is there a way to pass the path