From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 58jhB9a6aGA5ogAAgWs5BA (envelope-from ) for ; Sat, 03 Apr 2021 20:58:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2LvAANa6aGAybgAAbx9fmQ (envelope-from ) for ; Sat, 03 Apr 2021 18:58:30 +0000 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 EFCC824EEC for ; Sat, 3 Apr 2021 20:58:28 +0200 (CEST) Received: from localhost ([::1]:38520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSlTX-0007ax-EH for larch@yhetil.org; Sat, 03 Apr 2021 14:58:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSlT5-0007an-F3 for emacs-orgmode@gnu.org; Sat, 03 Apr 2021 14:57:59 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:58315) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSlT3-0005yS-O5 for emacs-orgmode@gnu.org; Sat, 03 Apr 2021 14:57:59 -0400 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id C4ACDC0D5B; Sat, 3 Apr 2021 14:57:55 -0400 (EDT) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=LMBZVvS1ca26ZtW+ahOvCo9x2jU=; b=Uyl52g Bzm7ki3Zzb0dXh7sdmL+Y+DoISy3OEbiPHEqmFSXm2tOqrTpMf+/wYgXFB5cfqhT zrVuAjCNmldQx+IDtqzmtd7IIPzAFE2GsZw0ULbyi15z/5R8qZ3dqASVWcEc7GfM KJrGncC77BFLhvc2sRjpOPMH33vilJO+5j/Q8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to:cc :subject:in-reply-to:message-id:references:mime-version :content-type; q=dns; s=sasl; b=ne8UcXZTm0paEYKiMlSgK2pmvRD7N3yf gZ38jUC1E8p9lShOqbZyuxo1felXuMku1zxHdy/exdxtY3RSdyrEeV8nNiI2w6ms 0uXH+/lvFimdQGPZxp7/yYHyHt/y3gyx4I7YZ43RFdR+Q85XuN/LIlCCfOghBFoX /8V7D3YJ0P0= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id BD8ACC0D5A; Sat, 3 Apr 2021 14:57:55 -0400 (EDT) (envelope-from wtd@pobox.com) Received: from shell3.miskatonic.org (unknown [199.103.62.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 4E040C0D59; Sat, 3 Apr 2021 14:57:55 -0400 (EDT) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id 7769B1227CD; Sat, 3 Apr 2021 14:57:54 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id 727B91206B6; Sat, 3 Apr 2021 14:57:54 -0400 (EDT) Date: Sat, 3 Apr 2021 14:57:54 -0400 (EDT) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: Greg Minshall Subject: Re: How to get a table into a variable in a shell code block? In-Reply-To: <700587.1617475549@apollo2.minshall.org> Message-ID: References: <700587.1617475549@apollo2.minshall.org> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Pobox-Relay-ID: 7FBEAD34-94AE-11EB-BAC4-74DE23BA3BAF-56320186!pb-smtp2.pobox.com Received-SPF: pass client-ip=64.147.108.71; envelope-from=wtd@pobox.com; helo=pb-smtp2.pobox.com 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617476309; 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=iGd0W6XuPbwg53WGAay3yI3tnOnoGLVt/bcQk3S4Mo4=; b=id0H/gso0QJvmnp4s4sAk4YcJbucm/2AS3APsi6EhRar+vc/iX/dtkqlIq7GQ38GgcPR3f xoayVxEOLnWWmLHkl5tCjjWoNjsdS3K9nR7gG17N1jdpoB+L3bcru+Nu2sxz1Fofft62AQ YlikBr9xTHrG1F04sGBD8qJ0ADEMoPD80mp+mUv0wpTmzFlUezMd8XuDMiFIFPSUKNrUd0 JQPvBno5KvMoObcHyqX2u1mK/332GV4ZiBu5YDmQ16goqeEx2FUpl5h3vfdkoEnXT2aMlz OZ7Agnnkl+xHjnO3njPhv6UKEE+M9/gN8zHxuF525HTfusSO4m0CUPqRSMB31A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617476309; a=rsa-sha256; cv=none; b=o7rfxGLpWgTyLPl4/cVZz5ofzfk6LkuCNZ7NKqfmnuPIie3ujTDbLKqbmd0dO4/jHWI7LZ 1jZ/FTPc9mybd9iOwwR/RrtwYJp+zRfU1/+XVzTxLoe8YE0TLbFN+Jzfswcj/fAtkmTwc0 /g7Ott9gx73yWHabHdlnNoVYKfXkAWaH/Y/TSMl9KuduzL8uJKxy1r+1CEBV/TEwooe0AZ lYBUdIC3oJoqlboDFczmM+G8sSn5AWwDzWh4shyGNvFCtmqMVnFEW7f41PJaREPoZDj5Cu hdzCokhWZjShK3KTrFQMhXr97FGpPu5OleQFuhN1drFOVO7Q4ga86eyQnTZI0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b="Uyl52g B"; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b="Uyl52g B"; dmarc=pass (policy=none) header.from=pobox.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: EFCC824EEC X-Spam-Score: -2.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: XlcmdsFTjCGf On 3 April 2021, Greg Minshall wrote: > #+begin_src shell :results output :var n=numbers > echo ${n[1]} > #+end_src Aha, it's in an array but I didn't see it! Thanks. Org was doing it magic but I got confused by bash. #+NAME: numbers | one | | two | | three | #+begin_src shell :results output :var n=numbers for i in "${n[@]}"; do echo $i done #+end_src #+RESULTS: : one : two : three Bill -- William Denton :: Toronto, Canada --- Listening to Art: https://listeningtoart.org/ https://www.miskatonic.org/ --- GHG.EARTH: https://ghg.earth/ Caveat lector. --- STAPLR: https://staplr.org/