[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Blank first line in a tangled file prevents src block execution
From: |
Eric Schulte |
Subject: |
Re: [O] Blank first line in a tangled file prevents src block execution |
Date: |
Sun, 11 Mar 2012 22:40:11 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) |
Nick Dokos <address@hidden> writes:
> Eric Schulte <address@hidden> wrote:
>
>> Or try
>>
>> #+begin_src sh :tangle code/get_wavs.sh :shebang #!/bin/bash
>> for fn_in in "$@"; do
>> fn_out=$(sed -e 's|\.3gp$||g' -e 's|$|.wav|g' <<< $fn_in)
>> ffmpeg -i $fn_in -vn -f wav -acodec pcm_u8 $fn_out
>> done
>> #+end_src
>>
>
> That reminds me: I believe shebang is used in tangling, but not in evaluation.
> Assuming that's correct, is there any fundamental reason for it not being used
> in evaluation?
>
Shell code blocks are evaluated using the org-babel-sh-command variable.
When the executing command is explicitly provided there is no need for a
shebang line, and it would be (to my knowledge) ignored.
Best,
--
Eric Schulte
http://cs.unm.edu/~eschulte/