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 IKYwO0G1YmPFYwEAbAwnHQ (envelope-from ) for ; Wed, 02 Nov 2022 19:21:54 +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 WNg6OkG1YmN8fgEAG6o9tA (envelope-from ) for ; Wed, 02 Nov 2022 19:21:53 +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 226AA3F7A3 for ; Wed, 2 Nov 2022 19:21:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqIMO-0001Xh-Ns; Wed, 02 Nov 2022 14:21:08 -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 1oqIMH-0001S3-I3 for emacs-orgmode@gnu.org; Wed, 02 Nov 2022 14:21:03 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([13.59.128.245] helo=adept-aeron.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqIMF-0000sF-H9 for emacs-orgmode@gnu.org; Wed, 02 Nov 2022 14:21:00 -0400 Received: from eternal-crocotta.authn-relay.a.mail.umich.edu (ip-10-0-74-45.us-east-2.compute.internal [10.0.74.45]) by adept-aeron.relay-egress.a.mail.umich.edu with ESMTPS id 6362B439.BDC38CA.59D29F9D.3297132; Wed, 02 Nov 2022 14:17:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1667413048; bh=1M+ZZiNVB57Z7UrkzWDEM954dZtQ2+Enb6e0lwim/5c=; h=From:To:Subject:Date; b=dl5zGf7f+YhldwPYCYmb97j02v6iynx1HYmSYBDGhRenEgdvTZ6f4EVLAOvbOwJdD +3w67nAw1S0XyuAusayeest0r/c7tj9aZWzG+7CGfxTJ6s/b2HmVftL8ZuXv/+KBAu bk1Z8hN6qPm2VJtyknFRLtlXvG2co6iZ1izwtyDjRnjQyuinu4DDaO5Ljh6H7SaZct N+/zIiZz0vtzZ9ZQZd3zlD1X/Vrg4MJluhTMNSJRkFYR56ZMplrbS3Ed0H1v1RLwrM wJELcwb7hbXgBg6osdw1JBApB6lmhDVic4kDLnbHrtgjqUErjqWlzG/t/Wz1QM/EDO iiv6p/mYd7yig== Received: from localhost (097-086-128-062.res.spectrum.com [97.86.128.62]) by eternal-crocotta.authn-relay.a.mail.umich.edu with ESMTPSA id 6362B438.15FFBCCE.25569D8E.1833651; Wed, 02 Nov 2022 14:17:28 -0400 From: Greg Minshall To: orgmode Subject: processing a literal example line by line in a shell source block? X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.1.91 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <122788.1667413045.1@archlinux> Date: Wed, 02 Nov 2022 11:17:25 -0700 Message-ID: <122789.1667413045@archlinux> Received-SPF: pass client-ip=13.59.128.245; envelope-from=minshall@umich.edu; helo=adept-aeron.relay-egress.a.mail.umich.edu X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: , 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=1667413313; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1M+ZZiNVB57Z7UrkzWDEM954dZtQ2+Enb6e0lwim/5c=; b=Oovw2lotMtl1G1YqihyycjtmZhIW6HIVWiB9XzM6vIcrA6wKlDV7quOY+HMpUP4SlC8e2H lkrvfMoih/4Tza/qnaqtW3vh4LoiTrd2LPnJPO5lCrmETqnXVRvohiM3qjFnP6X+QOVK6V tXRXgenOgjgOX2j7DF/cjaGYmUKdzqDPe9SouFusfSX97XQa0rEiB6dboyYT1p2T4I1O3K 0hJs/TVeSEdFooM30YkDSAtU72CK4/5LOCZoPoI8Px/tT27kAF+rI9gejDMC1LcG+JDAiP eaitjRSnXquPmoRg2V6HGbfDhXJrRYhsmB3QTj9I5H0w/i2+hfCZshLURp9IHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667413313; a=rsa-sha256; cv=none; b=BIwOuFuCckJF8dM3mY+ZeYSlb0X7fpwD0yN0Ppq3RYvMHsjlhVGlZhKDRR0kTBHYHDDs+j pHgdrZV0BYfCVwKMiVH6qAn7AOPpcbEwHVqKF9vdyijjNC9tA4AwIgKIiz9CNHmTdwKwoQ bTyCiCqDA5yJJGWBT0Kpz9b/I00BbmgArJVVohgKAcA48fdgVaTWXvGBkAgtU09ag5onMA G4xh1L/juKexM1sX+H8/wRGM/FKifMoP3pjPQBXj4dQqMvy9od1D7oC79lPdHE/c7gN31X Gz+salySorEYxHspx0rbQCU8ngNWY/1VxVRpvO0wRaaAjljwseCZLgNViQgR/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=dl5zGf7f; dmarc=pass (policy=none) header.from=umich.edu; 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: -8.29 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=dl5zGf7f; dmarc=pass (policy=none) header.from=umich.edu; 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: 226AA3F7A3 X-Spam-Score: -8.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9NyGl7FrFx+i hi. i have a text in a named #+begin_example ... #+end_example block. i would like to process this text line by line in a shell (bash, say) code block. but, it appears that the individual lines are not separated, but passed as one long string to the source block. (example below.) is there a magic incantation i can use to accomplish this? cheers, Greg #+name: lbl #+begin_example line 1 line 2 #+end_example #+begin_src bash :var input=lbl :var in2='("first" "second") echo ${#input[@]} echo ${#in2[@]} echo ${input} #+end_src #+RESULTS: | 1 | | | | | 2 | | | | | line | 1 | line | 2 |