From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EGG+OY/qY2MbQwAAbAwnHQ (envelope-from ) for ; Thu, 03 Nov 2022 17:21:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OPTbOI/qY2PbCAEAG6o9tA (envelope-from ) for ; Thu, 03 Nov 2022 17:21:35 +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 9FE10A1C4 for ; Thu, 3 Nov 2022 17:21:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqcwc-0004iN-PF; Thu, 03 Nov 2022 12:19:54 -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 1oqcuq-0000yx-MN for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 12:18:06 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqcuo-00089m-CI for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 12:18:03 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oqcui-000459-Bi for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 17:17:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: [BUG] ob-shell :stdin is broken on the main branch Date: Thu, 3 Nov 2022 23:17:48 +0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667492495; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=6AcnKKyEn6Hzf1+ew1v/vEoP/pdElFBoV1f4lDBR99Y=; b=o0TwF9zW0SwRSsHHG6M8z5NImtVRJO0VEMwFWvvymWYUDm0xZ2uitOUlDzOt0W3O8K70po 1XGP309+Cgc8mblxsv3xiCsimzJPWBJOAJcTJIhHc+357HmjewcDdvJQC6ufzcxzqnSwsL xBxorGwyYoS9/cAEtqGaRfmprrPrePP4PgzMGDH3cjuUFh0Aoi6l6RQ1kFoJrDgmRkpLkQ womQbW9H0Rv3hTbU7cF/GACEVs/+2wwvXAiHsU4S5Wwuk8hZFouOp2t6o4Ig4UUJ16bfOY WBBFxG3hvXNtRfYJMb5mRRKbveVGFshDYJ3RGZWShAG87Y8YF01TPowqbQAj7g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667492495; a=rsa-sha256; cv=none; b=HbjYWLIa6ZNVSIOw11KpLOxRK+qNKhowAE+9Sey4HIKoo/JFbYSILRJ5+jWbE+jXFvb+H0 rrzAu4u+IZBGnkufteBquarnf8DXhDi2VKrDy2eGuJRBPcOqT45JGgJQNQ/x6Q7zC/RFu0 RpQ2YUNk1IrZ7rBA/vbO6oLNJAMHJaThOZM4y7e1iCHvbLJbdQv5nZzXWy+QihF+oMmV28 dTc+3Dc8MflKMEFVKtbp2qGhfD6nKOUURkO6bAm2bbduSCDmOMB7WqJlQjcFnzEG/Efk4+ CMDiIWF+wC7h8BxYL+cWU3aZFwXuk/V9MTcvdVftKjDw8E719C5pEKXdzvrIjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 4.21 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: 9FE10A1C4 X-Spam-Score: 4.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: FBr3jCz5HiTL Try the following source code blocks: #+begin_src elisp (require 'ob-shell) #+end_src #+name: lbl #+begin_example line 1 line 2 #+end_example #+begin_src bash :stdin lbl cat #+end_src Second one signals "Wrong number of arguments" at least in Emacs-26 with Org main HEAD. Org bugfix branch works and yields #+RESULTS: | line | 1 | | line | 2 | I was going to suggest #+begin_src bash :stdin lbl while read -r -a arr ; do echo "${arr[0]}" done #+end_src https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-shell.html in response to Greg Minshall. processing a literal example line by line in a shell source block? Wed, 02 Nov 2022 11:17:25 -0700. https://list.orgmode.org/122789.1667413045@archlinux