From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uMbtOMW7aGCvoAAAgWs5BA (envelope-from ) for ; Sat, 03 Apr 2021 21:02:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aOPCMsW7aGD8QQAA1q6Kng (envelope-from ) for ; Sat, 03 Apr 2021 19:02:29 +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 69B512504A for ; Sat, 3 Apr 2021 21:02:29 +0200 (CEST) Received: from localhost ([::1]:41614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSlXQ-0000xF-L5 for larch@yhetil.org; Sat, 03 Apr 2021 15:02:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSlWy-0000wi-JS for emacs-orgmode@gnu.org; Sat, 03 Apr 2021 15:02:00 -0400 Received: from mout01.posteo.de ([185.67.36.65]:57580) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSlWv-0007oc-E3 for emacs-orgmode@gnu.org; Sat, 03 Apr 2021 15:02:00 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 15C83160060 for ; Sat, 3 Apr 2021 21:01:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1617476513; bh=JjNqMNmJPjpq7MvXWE0F8CruSz6c4hhZjSSG4UZccmc=; h=From:To:Cc:Subject:Date:From; b=F/CEvjxn8T2/cxHbj3mtZknSgA0fIK1DRDfmHQc1cdp0ROA4h4DB7QIFJB/TaOu78 Zq7Jo+odtasAPymc7CxLAAhD8IWWzr/Nb/bMhrHnQnN2jE8MsedCBwzJpJ7p8+R7el n9rp15+NKbXeaepMCLqNaDLc3ZSeFSUQO9a/UDhsgPolrxKhtn7UhF4CvQj7tQNBPs l5SrolsWjNpJvMusKY5ZSycvJ6jIGLhDap1yzDlhli+e20dlw5ZCQuN/xNOJg8MNK5 KcbWDRZZws/mhQTArLkze2zIfhXV2/3bge3HGiehzwHsF/Mn5NsMNCdAbaXJiTCPr7 LyAsmcZuEh1/g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FCR9X2Pb2z9rxK; Sat, 3 Apr 2021 21:01:52 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Greg Minshall Subject: Re: How to get a table into a variable in a shell code block? References: <700587.1617475549@apollo2.minshall.org> Date: Sat, 03 Apr 2021 21:01:49 +0200 In-Reply-To: <700587.1617475549@apollo2.minshall.org> (Greg Minshall's message of "Sat, 03 Apr 2021 21:45:49 +0300") Message-ID: <87y2dzchuq.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.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_H4=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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode 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=1617476549; 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=o5pwDR971yOtXH6hy2DexKqHbqGKxXnoxQa5gGqnrZE=; b=Hdr8P3tTq2m9YekMdg+EC7vXQQUpY9YOXvGkfycBlmki6MXZcNZtpG67StemK6xkdMJoYA cClSmMxkpEfYVez80j8m6y5+8cQYBSAQu0S5j3K2NFOifQeXs4nwc3tUSwc3zhTbeSwyTT DQUBbZP3+mpKn3PgHB8NjL6fd9zaY+98xXJLxH+l4SBzGQnGTbd2UFOMQJd3J55JsjyC6J JRdH/smxwZ75vFFSmu1QNKOQsoCH4vUwNi67Rkbpz2cHBf2B8ykWRUB82KV+od6RMtFiXF nBh1+pTqf3v7SLQX2SfFavRR0ii77uW/aKJDS3ywrrEMmxo5+sx98Tgd8h4yfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617476549; a=rsa-sha256; cv=none; b=LyR0A3BgelLDV/+QuJlPUsOLnRw1mNSEL84eO9jc/8ZjaDClgFL3Knk6baxYEfp+VF+yMB tggCxbtV+znzVwOr6bk8abZUcvxoj1y2sHCYIcVGh4Z8Ja+ooRlP4jgakL5PKj8VzYEMBE 8jYcb/HuMyLLRu5PMrqJ7pc5KivlUHsGwVGxwVRC6r/QnlSbYJUEXIm2bdTwCpfpDWb+p7 gYWELFAT2c+suW8c/Y2THsswVpY5TIKpmfgD9jGGCKdM0G6VJ++dN74DV7Y9cazzwEr1XL K9yHUn227PhFq+1oeZpcCerMb8QGXBSEQiZ48wWtVDPQvpG+uI6YA54jzFwlVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="F/CEvjxn"; dmarc=pass (policy=none) header.from=posteo.net; 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=posteo.net header.s=2017 header.b="F/CEvjxn"; dmarc=pass (policy=none) header.from=posteo.net; 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: 69B512504A X-Spam-Score: -2.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: Q2PItJWLRpgp Hi Greg and William, Greg Minshall writes: > William, > > try > > #+begin_src shell :results output :var n=numbers > echo ${n[1]} > #+end_src > > cheers, Greg I don't know if I'm saying something wrong, but wouldn't it be better this way?: #+begin_src shell :results output :var n=numbers echo ${n[@]} #+end_src echo ${n[1]} returns the second element (two) of the list (0, returns one and 2 returns three) Best regards, Juan Manuel