From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: [babel] problem with sh blocks Date: Mon, 20 Feb 2012 08:49:10 +0100 Message-ID: <87k43ic5c9.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzO0Q-0003IB-6I for emacs-orgmode@gnu.org; Mon, 20 Feb 2012 02:49:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzO0L-0004pR-S8 for emacs-orgmode@gnu.org; Mon, 20 Feb 2012 02:49:54 -0500 Received: from plane.gmane.org ([80.91.229.3]:60914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzO0L-0004pL-J6 for emacs-orgmode@gnu.org; Mon, 20 Feb 2012 02:49:49 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RzO0B-0004Rh-QI for emacs-orgmode@gnu.org; Mon, 20 Feb 2012 08:49:39 +0100 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Feb 2012 08:49:39 +0100 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Feb 2012 08:49:39 +0100 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: emacs-orgmode@gnu.org 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