From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Blank first line in a tangled file prevents src block execution Date: Fri, 09 Mar 2012 18:14:38 -0500 Message-ID: <7541.1331334878@alphaville> References: <6613.1331330909@alphaville> <874ntxs95a.fsf@gmx.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S691I-0006rT-3j for emacs-orgmode@gnu.org; Fri, 09 Mar 2012 18:14:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S691F-0000R0-Sq for emacs-orgmode@gnu.org; Fri, 09 Mar 2012 18:14:43 -0500 Received: from g1t0026.austin.hp.com ([15.216.28.33]:6198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S691F-0000Qj-Nr for emacs-orgmode@gnu.org; Fri, 09 Mar 2012 18:14:41 -0500 In-Reply-To: Message from Eric Schulte of "Fri, 09 Mar 2012 15:26:57 MST." <874ntxs95a.fsf@gmx.com> 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: Eric Schulte Cc: nicholas.dokos@hp.com, Emacs orgmode 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? Panruo Wu's question in another thread ( http://thread.gmane.org/gmane.emacs.orgmode/53157 ) brought this to mind. Thanks, Nick