From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id KIc7JD5CLmbHagEA62LTzQ:P1 (envelope-from ) for ; Sun, 28 Apr 2024 14:34:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KIc7JD5CLmbHagEA62LTzQ (envelope-from ) for ; Sun, 28 Apr 2024 14:34:06 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EbOeApsg; 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=1714307646; a=rsa-sha256; cv=none; b=NUSZEQleR8Eaak4/RxcATnfGjtUR1G7Wo/b4AaGZ8g+pEkWY3fuacFB2HJV81BB5PVDxO+ 8RhfTtEmEi6HdZWRLiJ9kRAHmNOeRmFHZGlHgL0dU0pzrrYA6rNdIMiej4AS/Bez/MM8h1 +i2hduEo3HyU4L3VWRicK0RQdVn/yj4VWOpghnPItRO9J2YM4lFUiKfZSDtMgYhWZlQSu2 7NbRsk9D8dCmCanB6r9JOmLtz/o+cZGNc8Oy9fMddZNhDnH5cs/bhnR4nveax/UH715VH4 9GNAVajKG3XHOQmlPs36OVP9Lj8TBjf5Xfiey7JD/PtcsIqqQp/kU1yxHW088w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EbOeApsg; 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=1714307646; 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=/QveHLtB/hCSTj32RJHLhEXlWJTdX+xcQdOMmOnPMHE=; b=jyIwALY2HQfAodQJFl/0b17Ta8Uok4cvmMFILQeIHadGTsU9b691SxpvAQMCk1mcymnAYY pNN6fC+8RR0aInYT8WjrV3wB8TYuYayBW4BhuFW0lnas5f3t/5BmCYN4IVgnjbbIvIt0hF XNVqNHFC5OV+rgj2aISjd2VS5UygldNM+r4oYN/nto+WmOLW0xP/HUxegmv4eEJ6u9/hAt /4x1pOTT5WNdck3M8JmY67ampaZRi4Fhvl0dpDtP3Sv5TjcmVZH7ONRwJOM2vMF1IyPFbU k3rmcsi6pS+UDPu4eKatF8sxeIzRKUDhg0QJ/T4FkTRUOAb9XJjgb9lYnneDFg== 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 581191E96F for ; Sun, 28 Apr 2024 14:34:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s13iz-0007ay-LN; Sun, 28 Apr 2024 08:33:45 -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 1s13it-0007ab-Ce for emacs-orgmode@gnu.org; Sun, 28 Apr 2024 08:33:39 -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 1s13iq-0007ye-Qw for emacs-orgmode@gnu.org; Sun, 28 Apr 2024 08:33:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id ED3F0240101 for ; Sun, 28 Apr 2024 14:33:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1714307614; bh=0+0y8GhhFG9xap+kDU7hcHLmqvhQvbLrTCXnmObQ+T4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=EbOeApsg+iD5uS07OF3Pt8onl3gnY23mrU6Ze9GDE7FOiNtgdf6kghOSrfKVW6S7N BK/tJvJjpPG2s73G3JLnqwBJYwqV80qEke0tATwes8DFC1g7whusyvrZvspMFlnRVv OpUfc8kNMuHKyBNBZjor4wVAYzD3TggwOmL/FXge99KYS+NgMpsghDFf54IiZqZA2n HSE6Hmw35CXwoyOzi036xP1yUyt40Wg/3V+tlG4kp+CamUyKY+0iNLNVqW0tj/6Ygd uONK6i1d7kMUoq5v1NJzjfaoZA8HxgtDSKlj9Sqbp73NZEY2LPagY5hHqM7Br0R1xY lDohvSqmJ5LGQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VS5V51CVfz9rxF; Sun, 28 Apr 2024 14:33:32 +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> <87a5liexcu.fsf@localhost> <87le50uyx4.fsf@localhost> Date: Sun, 28 Apr 2024 12:34:34 +0000 Message-ID: <87le4xk6n9.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.01, RCVD_IN_MSPIKE_WL=-0.01, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 581191E96F X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.60 X-Spam-Score: -9.60 X-TUID: tcL/NM/IFCd9 Max Nikulin writes: >> I conclude that your concern, while being valid, is a _different_ bug. >> Thus, I do not see it as a blocker for my patch - my patch will fix the >> *original bug reported on top of this thread*. > > My concern is that your patch trying to fix one bug (I am not convinced > it is an improvement despite it is a step toward consistency) introduces > another one that is not currently present in the code. May you explain which bug you are referring to? The bug with bash -c ./script-with-no-shebang described in https://superuser.com/questions/502984/writing-shell-scripts-that-will-run-on-any-shell-using-multiple-shebang-lines is already present, and my patch does not change anything about it. >> (with-temp-file script-file >> (if shebang (insert shebang "\n") >> (insert "#!" shell-file-name "\n")) >> (when padline (insert "\n")) >> (insert body)) > > This code has an issue. Interpretation of relative file names in > shebangs varies across shells. May you elaborate? Are you concerned that `shell-file-name' may not be an absolute path? > If you insist on parsing :cmdline by shell (I do not like it) then you > may try > > ' > ' May you explain how it is better? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at