From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Nikishkin Subject: Shouldn't ob-shell's org-babel-expand-src-block prepend the :shebang value? Date: Fri, 13 Mar 2020 09:03:10 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44451) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCYjW-0003Uw-IK for emacs-orgmode@gnu.org; Thu, 12 Mar 2020 21:03:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCYjU-0004oy-Kp for emacs-orgmode@gnu.org; Thu, 12 Mar 2020 21:03:26 -0400 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:45198) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCYjU-0004mk-5S for emacs-orgmode@gnu.org; Thu, 12 Mar 2020 21:03:24 -0400 Received: by mail-ed1-x532.google.com with SMTP id h62so9812745edd.12 for ; Thu, 12 Mar 2020 18:03:23 -0700 (PDT) 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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). -- Yours sincerely, Vladimir Nikishkin