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 ms13.migadu.com with LMTPS id uDjzNEhifWYtewAA62LTzQ:P1 (envelope-from ) for ; Thu, 27 Jun 2024 12:59:53 +0000 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 uDjzNEhifWYtewAA62LTzQ (envelope-from ) for ; Thu, 27 Jun 2024 14:59:53 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XvlS3veE; 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=1719493192; 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=upXvnB7mhz57cqFz5mkWK3DfVxrsfSZDMKZgnVvyQaU=; b=rMJoHVkebhu4mNilO+VnuutCeYH8pfpv75dxUjt03DRcJmSwazj9AKBiz/0KtPOi1LvDQh BnJkuzViwKPmJUDPUF/aK+PcfZnqqrWxpEWZQoCJIbsh3QqkFQBpHgboG/6dDHKL4WD74I 8NGj0UJMKHUa9F1iwhO8AAdn4Yysl0citCYqbWGUVDTSuoxX0xS/+8RyCauWPwtt0oE25m q2DgQz5J90b65H2mhSWQM0IqUuoqE+6Yd70KqEEAmFHOcly5GGf+fOV+AYc7uFQaHmWnfK /sISGW2UkJsBfmGj9x+BC+U3T0Rywcb8/co52s28kInRYgdfFfkBqVDHEyGMfQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719493192; a=rsa-sha256; cv=none; b=SpSQ4MZOuTHLKaq3QxEtjrdL3tw6TGK7zCvUVcjM4Jj7HM0gcExaeFHrWOq2QwGFYvhx+f H2h5Kc/pSPo4h7ISP02AEgHr0pIlynkLtfaZQvw59dp3c/+5u+uht3/PHdx82sL+syjOkf +CcJln9USrX9p9B5IO+L9zbeBu0ojicThi8Vhah/tfig7OMPoaoh3Ezf1hu/Sr+OKE2glT hjUMOGvoeU612b+1M/GAxRngu55nQxy+uusRMLPcd6bfv39WRGV1WEWOhsohY3P9M1iYIT iA7SMEESovfPR5cejc/1GhnzYseYa2SVYVxntC3xxM5ZMI7QkBovWPPMRLoe4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XvlS3veE; 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" 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 B709B6AC76 for ; Thu, 27 Jun 2024 14:59:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMoiL-0007Vd-3C; Thu, 27 Jun 2024 08:59:01 -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 1sMoiI-0007UX-Rp for emacs-orgmode@gnu.org; Thu, 27 Jun 2024 08:58:58 -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 1sMoiG-0004Ht-Dk for emacs-orgmode@gnu.org; Thu, 27 Jun 2024 08:58:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1F941240103 for ; Thu, 27 Jun 2024 14:58:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719493133; bh=1Ya67YJJIaBBltCBSJXHW6G2Q7C9J93XBwuGztEdaNU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=XvlS3veE+qXBjIBIP8jiD6NCi+5Py4gkTM6KuwIVllkhC1cGmBFgbRGlfsw+dKHpZ TIm6gwREViD0hfVgUTrjiceOZD018dsZOTbodzMf3JB82M1Y+STsb2L9zYDmsKeGFx 81mc2+L23okkw6ufxP4GbIPCzU7DWpHNw0iVvzUF6TyrbBtXFx2fu3gcxuKXTFlJEn A/KhUxhhmG01SefM5YvwZwF/gyRDuXIudIv8MqEInhKNwqtiEl4yisc994W21QEv3/ 7/JONt8oAaIRmh6tHox75cQchRgs50lK2ldQVbntwaFm39OmzxMRqjEmCeFuFqgiKf bSy7i0jUjcmEg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W8zCc3lhQz6txS; Thu, 27 Jun 2024 14:58:52 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: [BUG] ob-shell may use /bin/sh instead of the specified shell when :cmdline is provided (was: [PATCH] Re: [BUG] ob-shell: :shebang changes interpretation of :cmdline) In-Reply-To: <87le50uyx4.fsf@localhost> References: <18f01342a2f.124ad27612732529.8693431365849276517@excalamus.com> <878r14qso9.fsf@localhost> <87a5liexcu.fsf@localhost> <87le50uyx4.fsf@localhost> Date: Thu, 27 Jun 2024 13:00:31 +0000 Message-ID: <87a5j6y1zk.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_H3=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-Queue-Id: B709B6AC76 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.29 X-Spam-Score: -9.29 X-TUID: LpYD9k6Isuse Ihor Radchenko writes: > As for the problem with > when does not contain shebang, we can trivially at that > shebang like > > (with-temp-file script-file > (if shebang (insert shebang "\n") > (insert "#!" shell-file-name "\n")) > (when padline (insert "\n")) > (insert body)) I am branching off this bug into a new thread. Reproducer: #+begin_src dash echo This must be empty in dash: "$RANDOM" #+end_src #+RESULTS: : This must be empty in dash: #+begin_src dash :cmdline 1 2 3 echo This must be empty in dash: "$RANDOM" #+end_src #+RESULTS: : This must be empty in dash: 25561 The second code block uses shell as evidenced by $RANDOM variable being initialized. This only happens when :cmdline header argument is provided. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at