diff --git a/Labb6/test_array.sh b/Labb6/test_array.sh index 44ff448..0fed4ac 100755 --- a/Labb6/test_array.sh +++ b/Labb6/test_array.sh @@ -4,16 +4,8 @@ # LX13 # Just testing arrays -Content=`ls` - -Nr=0 - -for i in $Content; do - Word[$Nr]=$i - ((Nr++)) -done - -echo ${Word[@]} +Content=($(ls)) +echo Content[@]} exit 0