emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] problem with sh blocks
@ 2012-02-20  7:49 Andreas Leha
  2012-02-20  8:56 ` Sebastien Vauban
  2012-02-20 13:59 ` Eric Schulte
  0 siblings, 2 replies; 8+ messages in thread
From: Andreas Leha @ 2012-02-20  7:49 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

why is it, that I can not use this code in sh blocks (I get sh: 2: Bad
substitution), even though it is valid when I run the tangled
script?  Is this a known thing?

#+begin_src sh :shebang "#!/bin/bash" :tangle test.sh
  for i in *.org; do
      echo cp "$i" "${i/%.org/.bak.org}"
  done
#+end_src

How can I get the above block to execute?

Thanks in advance,
Andreas

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-23 20:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-20  7:49 [babel] problem with sh blocks Andreas Leha
2012-02-20  8:56 ` Sebastien Vauban
2012-02-20  9:23   ` Andreas Leha
2012-02-20 12:34     ` Sebastien Vauban
2012-02-20 12:46     ` Bernt Hansen
2012-02-23 20:08       ` Andreas Leha
2012-02-20 13:59 ` Eric Schulte
2012-02-20 17:51   ` Andreas Leha

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).