From 3c3d59d52b4947afcb72f5a9cf7c8ce661d6d29f Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Mon, 6 Jun 2016 12:09:41 +0200 Subject: [PATCH] snippet: tablesrcsh fix bug - array index was incorrect. --- snippets/org-mode/tablesrcsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/org-mode/tablesrcsh b/snippets/org-mode/tablesrcsh index 4ccb9505..118a65fa 100644 --- a/snippets/org-mode/tablesrcsh +++ b/snippets/org-mode/tablesrcsh @@ -10,7 +10,7 @@ ${2:#+NAME: ${3:`(replace-regexp-in-string "[: ]" "_" (replace-regexp-in-string #+BEGIN_SRC sh ${4::session ${5:client}} :var ${6:HOSTS$(upcase (yas-text))}=$1[,0] :cache ${7:$$(yas-choose-value '("yes" "no"))} :results ${8:$$(yas-choose-value '("verbatim drawer" "table" "list"))} $6=($$6) -for INDEX in \`seq 0 1 \$\{#$6[@]\}\`; do +for INDEX in \$\{!$6[@]\}; do echo "----------------------------------------" echo \$\{$6[$\{INDEX\}]\} echo "----------------------------------------" -- 2.47.3