bobbyiliev / introduction-to-bash-scripting

Free Introduction to Bash Scripting eBook

Home Page:https://ebook.bobby.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: 008 bash Array.md

vipul-2003 opened this issue · comments

Describe the bug

I was reading the book to revise my concepts , while revising i have noted that 008-bash array file has bug in .md file

my_array=("1""2""3""4""5")
echo ${#my_array[@]} --this will print only the first value not  the total no. of elements

Explainig Syntax error with screenshot
image

Correct Way of Writing 👍

echo ${#my_array}  --this will print the number of elements in my array 

Attached Screenshot (for sake of proof)

image

please assign this to me , i will fix accordingly ...

Thanks you ❤️

Hi there @vipul-2003

Thank you for this report! I just assigned you to the issue!

have a look @bobbyiliev 👀

Thank you! Just commented under the PR and will close this issue.