From 9a04ba0ef4a5cc06859d7f89e4aaa8ab2c152d29 Mon Sep 17 00:00:00 2001 From: Michael Pierce Date: Sat, 10 Feb 2018 12:22:42 -0800 Subject: [PATCH] bash.sh: array(val val val) -> array=(val val val) --- languages/bash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/bash.sh b/languages/bash.sh index ac55bca..60fcd98 100644 --- a/languages/bash.sh +++ b/languages/bash.sh @@ -147,7 +147,7 @@ array[0]=val # several ways to define an array array[1]=val array[2]=val array=([2]=val [0]=val [1]=val) -array(val val val) +array=(val val val) ${array[i]} # displays array's value for this index. If no index is supplied, array element 0 is assumed ${#array[i]} # to find out the length of any element in the array