From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Blank first line in a tangled file prevents src block execution Date: Sun, 11 Mar 2012 22:40:11 -0600 Message-ID: <87k42pg69w.fsf@gmx.com> References: <6613.1331330909@alphaville> <874ntxs95a.fsf@gmx.com> <7541.1331334878@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S77f2-0002Tv-81 for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 12:00:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S77ei-0000Ph-26 for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 11:59:43 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:55279 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1S77eh-0000Gq-Q9 for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 11:59:27 -0400 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: nicholas.dokos@hp.com Cc: Emacs orgmode Nick Dokos writes: > Eric Schulte 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/