Nick Dokos <nicholas.do...@hp.com> writes: > Eric Schulte <eric.schu...@gmx.com> 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/