From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id CCB/CJoAKWZiDwEA62LTzQ:P1 (envelope-from ) for ; Wed, 24 Apr 2024 14:52:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id CCB/CJoAKWZiDwEA62LTzQ (envelope-from ) for ; Wed, 24 Apr 2024 14:52:42 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="GD/ZIQ8J"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713963162; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+AFfUyKH6DCy4n5eg2X4F6yXEPZIz7CxFPcjYgIWXsc=; b=NErKYFfAV8hFnqt514j7kzRkVIDTf5gF2DjgqhY1AfoSRa59iJYJyyrkrX4HeHd8L2LEcL 1jN1rGU0VQ99pU3/5TuUhGRb+Eg8BMZjXdG7In0X8BltxAAHY+3GISk7JLEl3BMvBsQ5FS HrOF/v6v8UwmeFLk/1fU9vlMfRYXiCmyXzfoP9Ez4QPkwqZVnXlu8pzaRDAm+6wDfw8rs2 PSs+fQJtHmyTiqLPjR8rb5nSeZx6CM+NbPH5s9EjjlFr6PUNgYl+wl+TitdW1NfCJWUz86 rARFrlrnlTzEF8eeTMPA5Rqga211jYEiBupX5Nwka8RaHwZ+GOPnzz9E0DvAQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="GD/ZIQ8J"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713963162; a=rsa-sha256; cv=none; b=bAXACFgD+bxgHN8XiOsdlEhBarG+/7EC87gqcWNEigr7K8fonvbVpZ1Rhkdh3mqnS58dcD ziyfjuqpFEN5LJjIzqFFvMyjlkt+Bv+71iz2ZlTJLWa35WEfHNhqq2TWPi6ut7cfxVKeDP p3CyOmOeFWxLuzRZmroDVm1OcWVu1RoDX/CRpTIVIh9tPvwCW3oxMI+ZWsDlPfNvJG47Yj 3poo60k75WHfGBKvzTaOIoSl4Sjxad52gKt9lzGWLctaAyKTbNP1ECL6/lAFljNukHiSfZ 3Y4f0WMBseFiTFes9FpdaepCfVBRA4IDOZbuXq8b+GOtua2Un7nZtFqvBHiwiw== 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 36B7D670EB for ; Wed, 24 Apr 2024 14:52:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzc6b-0001Ba-7h; Wed, 24 Apr 2024 08:52:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rzc6Q-00019V-Vq for emacs-orgmode@gnu.org; Wed, 24 Apr 2024 08:52:00 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rzc6O-0007Jx-8d for emacs-orgmode@gnu.org; Wed, 24 Apr 2024 08:51:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C7133240101 for ; Wed, 24 Apr 2024 14:51:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1713963113; bh=SYXFDHc1nIO++nXM+DnRhxc97WNq3fhIKgber/vspUQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=GD/ZIQ8JnWXH77vWGIk212fTXMPWp1bLwsD9/iSTpMtI7C5/1xojJOK+ceUmQ47s6 88jAshE+ZBknEGigyqJ7aXQvfkywkR+pdWGZ/4dgMsHCC3f04iA7F5VlyEbYCVd9Ic /kwzx/Fso/muiJyC9c34z8Nr3JgiuIVKADwZEYLOgbEc4XNqSgB8HgZnj6ZpqvXIAv AQBKMQZaYpQb/143o/2B552v0MIfGlJkWGkVS3kp/z/br0WTjTA/Ehjerhe2yvIrjI nblMkWsA8TW0F/o93Yl2df5Gsg+Q/x7d2USnog5UymfuC5C0Ch3CNWH41sOuGT8cxl MfGfzc6kuW6kw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VPf545r4qz6txg; Wed, 24 Apr 2024 14:51:52 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Re: [BUG] ob-shell: :shebang changes interpretation of :cmdline In-Reply-To: References: <18f01342a2f.124ad27612732529.8693431365849276517@excalamus.com> <878r14qso9.fsf@localhost> Date: Wed, 24 Apr 2024 12:52:49 +0000 Message-ID: <87a5liexcu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.13 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -9.13 X-Migadu-Queue-Id: 36B7D670EB X-TUID: fSrNdhT7WADs Max Nikulin writes: >> + shell-file-name > ... >> + (list shell-command-switch >> + (concat (file-local-name script-file) " " cmdline)))) > > Using `shell-command-switch' unconditionally may lead to executing > /bin/sh instead of shell specified by `shell-file-name' for script files > having no shebang, see > > https://superuser.com/questions/502984/writing-shell-scripts-that-will-run-on-any-shell-using-multiple-shebang-lines Good point. > I believe, multiple arguments should be specified as '(1 a "b c"). Yes, but we do not, in general, know how to split them. > With shebang (as header arg or as part of the body) command should be > /path/to/script [ARGUMENT]... > when there is no shebang > /shell/executable /path/to/script [ARGUMENT]... Maybe instead of `process-file' we can simply use `shell-command'? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at