Re: [O] [babel] problem with sh blocks

2012-02-23 Thread Andreas Leha
Bernt Hansen writes: > Andreas Leha writes: > >> Org-mode version 7.8.03, pulled last week >> (how do I get the release info as well?) > > If you are running from a git repository then M-x org-version should > show the results of 'git describe' automatically. > > C-u M-x org-version RET > Org-

Re: [O] [babel] problem with sh blocks

2012-02-20 Thread Andreas Leha
Eric Schulte writes: Hi Eric, > Hi, > > As with the other recent sh-block email, the problem is likely due to > the interpreter used (e.g., bash as compared to dash). See the value of > `org-babel-sh-command' which defaults to "sh" which defaults to a POSIX > rather than bash shell on many syste

Re: [O] [babel] problem with sh blocks

2012-02-20 Thread Eric Schulte
Hi, As with the other recent sh-block email, the problem is likely due to the interpreter used (e.g., bash as compared to dash). See the value of `org-babel-sh-command' which defaults to "sh" which defaults to a POSIX rather than bash shell on many systems. Best, Andreas Leha writes: > Hi all

Re: [O] [babel] problem with sh blocks

2012-02-20 Thread Bernt Hansen
Andreas Leha writes: > Org-mode version 7.8.03, pulled last week > (how do I get the release info as well?) If you are running from a git repository then M-x org-version should show the results of 'git describe' automatically. C-u M-x org-version RET Org-mode version 7.8.03 (release_7.8.03.42

Re: [O] [babel] problem with sh blocks

2012-02-20 Thread Sebastien Vauban
Hi Andreas Leha, Andreas Leha wrote: > Hi Seb > >>> 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

Re: [O] [babel] problem with sh blocks

2012-02-20 Thread Andreas Leha
Hi Seb >> 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/

Re: [O] [babel] problem with sh blocks

2012-02-20 Thread Sebastien Vauban
Hi Andreas Leha, Andreas Leha wrote: > 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;

[O] [babel] problem with sh blocks

2012-02-19 Thread Andreas Leha
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 #