From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2GEhHQz+WGVRcAAAG6o9tA:P1 (envelope-from ) for ; Sat, 18 Nov 2023 19:10:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2GEhHQz+WGVRcAAAG6o9tA (envelope-from ) for ; Sat, 18 Nov 2023 19:10:20 +0100 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 E4F37155BC for ; Sat, 18 Nov 2023 19:10:19 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=LS8qVOJB; 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"; dmarc=none; arc=pass ("zohomail.com:s=zohoarc:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700331020; 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=v9cU5Gp6FDBkj6GYiy+RHP1MnB2JTiJ+u3G5+ENQ55Y=; b=gxax7t9T52ugaMLdf9mtLHdssIQoUq9wwQ4pENWx1VSH9lI+kr+SgAC5u4LJJRFDjD/5fF gPVjo50i1OhXUWzSXQv+KT3JaHKP9sCrU1WfzzzUvDEBtREr0OHki6VSz/zvyfgBjMWi7x xJB+sKRck5xK6uDfYzFJnzKvFf6IlPaoLBaa0eBjN5/xgVHnoml2wU+mh9xwr14o/qja8L oFI+34xv8otJGua37ezRFUlung+TIf41aisYPwWXhOq6JJE5+4jLAGkUKzrj/mmJeK7vlj 7WdHe3dLrPgt5X2OL0ed5JeCTqPonxlNkUm5CqvzNp2bQoQuj/wrkN+7Kp/g+Q== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=LS8qVOJB; 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"; dmarc=none; arc=pass ("zohomail.com:s=zohoarc:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1700331020; a=rsa-sha256; cv=pass; b=auXZItGy2crxxenw18F5f5N6Q3/venCmQlaVqou9w/aNCt9k/QLxExifmm4RblqL178tuv VaqtLbW2I2y2SjPmYHJbTJQsAKqaE4egfo0DU5UmMFY2IfhSXfa5mDvlsws/H+o6UKs9K4 ovpif84zAG72fVHj+NFcBw4Y0RnxjLmglcMXxbLVCrsSqmzDZf1RVJSb4InOEStpgznICM J6ehIbNs0sVhIspgGtQ1euwdspxWLcj5lpEsGV+CxqPnFeB6zzBG+nS/xI5ViJWQRyDScA q6fg+T6/8OVKQdMB1D2YM8oiTCD9UB41sTZ4e93xlGU3ZBzqtMA4FR1EG/5hsQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4Pl4-0003Zn-HA; Sat, 18 Nov 2023 13:09:30 -0500 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 1r4Pl2-0003WZ-Cj for emacs-orgmode@gnu.org; Sat, 18 Nov 2023 13:09:28 -0500 Received: from sender4-op-o12.zoho.com ([136.143.188.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4Pkz-00017B-6F for emacs-orgmode@gnu.org; Sat, 18 Nov 2023 13:09:27 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1700330961; cv=none; d=zohomail.com; s=zohoarc; b=BLM7mnUExoNeS0Vv0wYB+QVXQdGtS4N9WJIDt59+7BcymPAXH09r/cgeSjHxuH8BrR/L+t6NngSWWraaPA0qzForde2yMSKHgAPwkaWRdiHOUK0io0PT4AmGhk1h+G8TjK97CBZf1KUvH2yBw8Qo5g/bDqrOCWRDv34FD4ZAIlU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700330961; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=v9cU5Gp6FDBkj6GYiy+RHP1MnB2JTiJ+u3G5+ENQ55Y=; b=KCoGzXWzVWj6WBCqLFf2bFIBDY9eRQlqbGjN7rXpYxjyrBmA9pBSzoKIuUUPv2iA5P7EucbkNHemRozMtUPZohCB4vEaGKLAKz2KQRG9pvUQ+aMm800uZ2bZqJT+aVjZovO4XMNbyhEWUrZ3H4s56zMIRzue7rmnpFgj1zroX2Q= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=excalamus.com; spf=pass smtp.mailfrom=matt@excalamus.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1700330961; s=zmail; d=excalamus.com; i=matt@excalamus.com; h=Date:Date:From:From:To:To:Cc:Cc:Message-Id:Message-Id:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Reply-To; bh=v9cU5Gp6FDBkj6GYiy+RHP1MnB2JTiJ+u3G5+ENQ55Y=; b=LS8qVOJBifRs5Hhw5GP45nhN/lJFlGb2katHjKGqN5AK8d6iYrQLxZR7+iOe2NTy kU+9+WCXwpa57HlHEs54K7l3gVhiaoh3WaS+F7AhSZwmPmkdbKyF1F+6VwjPlDT6eeC fJZxcxSFgQ0/ZXjf1RCwf3RUswLZJ79TLwOIRO70= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1700330959088619.2128022406048; Sat, 18 Nov 2023 10:09:19 -0800 (PST) Date: Sat, 18 Nov 2023 19:09:19 +0100 From: Matt To: "Max Nikulin" Cc: "emacs-orgmode" Message-Id: <18be39f70c0.11af741683423289.2491735561665013905@excalamus.com> In-Reply-To: References: Subject: Re: [BUG] ob-shell: :shebang changes interpretation of :cmdline MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_11048596_1169318474.1700330959040" Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Zoho-Virus-Status: 1 X-Zoho-AV-Stamp: zmail-av-1.1.0/200.232.44 Received-SPF: pass client-ip=136.143.188.12; envelope-from=matt@excalamus.com; helo=sender4-op-o12.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Spam-Score: -7.43 X-Spam-Score: -7.43 X-Migadu-Queue-Id: E4F37155BC X-Migadu-Scanner: mx10.migadu.com X-TUID: Cm+JAJtyrj8t ------=_Part_11048596_1169318474.1700330959040 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit ---- On Sat, 18 Nov 2023 16:54:39 +0100 Max Nikulin wrote --- > I have faced an inconsistency with :cmdline treatment in ob-shell.el. I > expect same results in the following cases: > > #+begin_src bash :cmdline 1 2 3 > printf "%s\n" "$1" > #+end_src > > #+RESULTS: > : 1 > > #+begin_src bash :cmdline 1 2 3 :shebang #!/bin/bash > printf "%s\n" "$1" > #+end_src > > #+RESULTS: > : 1 2 3 Thank you! This makes a good test case. Ihor or Bastion, Craig and my employer reached agreement on the disclaimer language. I've sent a signed copy to Craig and haven't heard back yet with the go-ahead to continue contributing. I sent the paperwork only a week or so ago, so I'm sure he'll get back to me in time. Because of this, I'm including patches rather than pushing (which assumes I still have access (I haven't checked)). ------=_Part_11048596_1169318474.1700330959040 Content-Type: application/octet-stream; name=test-cmdline-alone-and-with-shebang-have-same-result.patch Content-Transfer-Encoding: base64 X-ZM_AttachId: 139196237590410290 Content-Disposition: attachment; filename=test-cmdline-alone-and-with-shebang-have-same-result.patch ZGlmZiAtLWdpdCBhL3Rlc3RpbmcvbGlzcC90ZXN0LW9iLXNoZWxsLmVsIGIvdGVzdGluZy9saXNw L3Rlc3Qtb2Itc2hlbGwuZWwKaW5kZXggODc5NTU1YWYwLi44ZjYxODAxNTMgMTAwNjQ0Ci0tLSBh L3Rlc3RpbmcvbGlzcC90ZXN0LW9iLXNoZWxsLmVsCisrKyBiL3Rlc3RpbmcvbGlzcC90ZXN0LW9i LXNoZWxsLmVsCkBAIC00MzYsNiArNDM2LDI2IEBAIGV4aXRpbmcgd2l0aCBhIG5vbi16ZXJvIHJl dHVybiBjb2RlIG11bHRpcGxlIHRpbWVzLiIKICAgICAgICAgICAgICAgICAgICAgICAgICAoYnVm ZmVyLXN0cmluZykpKSkpCiAgICAgICAoa2lsbC1idWZmZXIgIipPcmctQmFiZWwgRXJyb3IgT3V0 cHV0KiIpKSkKIAorDAorOzs7IGNtZGxpbmUKKworKGVydC1kZWZ0ZXN0IHRlc3QtY21kbGluZS1h bG9uZS1hbmQtd2l0aC1zaGViYW5nLWhhdmUtc2FtZS1yZXN1bHQgKCkKKyAgIkV4ZWN1dGluZyBh IGJsb2NrIHdpdGggdGhlIHNhbWUgc2hlYmFuZyBhcyB0aGUgc2hlbGwgbGFuZ3VhZ2UKK3Nob3Vs ZCBwcm9kdWNlIHRoZSBzYW1lIG91dHB1dC4iCisgIChzaG91bGQgKGVxdWFsCisgICAgICAgICAg IChvcmctdGVzdC13aXRoLXRlbXAtdGV4dAorICAgICAgICAgICAgICAgIiMrYmVnaW5fc3JjIHNo IDpjbWRsaW5lIDEgMiAzCitlY2hvIFwiJDFcIgorPHBvaW50PgorIytlbmRfc3JjIgorICAgICAg ICAgICAgIChvcmctYmFiZWwtZXhlY3V0ZS1zcmMtYmxvY2spKQorICAgICAgICAgICAob3JnLXRl c3Qtd2l0aC10ZW1wLXRleHQKKyAgICAgICAgICAgICAgICIjK2JlZ2luX3NyYyBzaCA6Y21kbGlu ZSBcIjFcIiA6c2hlYmFuZyAjIS9iaW4vYmFzaAorZWNobyBcIiQxXCIKKzxwb2ludD4KKyMrZW5k X3NyYyIKKyAgICAgICAgICAgICAob3JnLWJhYmVsLWV4ZWN1dGUtc3JjLWJsb2NrKSkpKSkKKwog KHByb3ZpZGUgJ3Rlc3Qtb2Itc2hlbGwpCiAKIDs7OyB0ZXN0LW9iLXNoZWxsLmVsIGVuZHMgaGVy ZQo= ------=_Part_11048596_1169318474.1700330959040--