From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QNlvEpobU18eJAAA0tVLHw (envelope-from ) for ; Sat, 05 Sep 2020 05:01:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gCYtDpobU18ENgAAB5/wlQ (envelope-from ) for ; Sat, 05 Sep 2020 05:01:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9AC8D940308 for ; Sat, 5 Sep 2020 05:01:13 +0000 (UTC) Received: from localhost ([::1]:40264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEQK7-00062S-0Y for larch@yhetil.org; Sat, 05 Sep 2020 01:01:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEQJb-00062M-9u for emacs-orgmode@gnu.org; Sat, 05 Sep 2020 01:00:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57289) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEQJa-0003f2-PV; Sat, 05 Sep 2020 01:00:38 -0400 Received: from lns-bzn-32-82-254-31-120.adsl.proxad.net ([82.254.31.120]:49218 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kEQJU-0006cX-8k; Sat, 05 Sep 2020 01:00:37 -0400 Received: by guerry (Postfix, from userid 1000) id 28FAA1A60D46; Sat, 5 Sep 2020 07:00:31 +0200 (CEST) From: Bastien To: Vladimir Nikishkin Subject: Re: Shouldn't ob-shell's org-babel-expand-src-block prepend the :shebang value? Organization: GNU References: Date: Sat, 05 Sep 2020 07:00:31 +0200 In-Reply-To: (Vladimir Nikishkin's message of "Fri, 13 Mar 2020 09:03:10 +0800") Message-ID: <87y2loakcw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: Bx05fmELdKgy Hi Vladimir, Vladimir Nikishkin writes: > I use C-c C-v C-v quite often to check the final file produced. > I use ob-shell with the :shebang of "#!/usr/bin/chibi-scheme", because > my code is actually scheme-script, and I need to use :stdin, which > isn't supported by ob-scheme and geiser. (And geiser also has some not > inconveniences). > > However, when I expand the block, the shebang line is not added to the > top. The top line could also be potentially used for file type > detection, and what is also annoying, errors reported by the > interpreter are off by 1 (due to the missing first line). can you share your suggestion as a patch? It will be easier to read it and evaluate its relevance. If you need directions on how to share a patch, let us know. Thanks! -- Bastien