Timeline for How to pass an array as function argument?
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 10, 2021 at 15:47 | comment | added | heemayl | @Davos Typo. Fixed. | |
Jun 10, 2021 at 15:47 | history | edited | heemayl | CC BY-SA 4.0 |
added 1 character in body
|
Jun 10, 2021 at 14:15 | comment | added | Davos |
At the very end of the last bullet point is there also a missing { , or is this intentional arr="$arr[@]}" ?
|
|
May 19, 2021 at 16:54 | review | Suggested edits | |||
May 25, 2021 at 15:58 | |||||
Sep 15, 2015 at 17:43 | history | edited | heemayl | CC BY-SA 3.0 |
added 1 character in body
|
Sep 15, 2015 at 17:36 | comment | added | Cbhihe | @heemayl: small typo -- The { in your array of the second bullet went missing ... "${array[@]}" ... | |
Sep 15, 2015 at 9:59 | history | edited | heemayl | CC BY-SA 3.0 |
added 4 characters in body
|
Sep 15, 2015 at 9:43 | comment | added | A.B. |
To see the difference, add a break below echo "$i" . In your version you will still see all the elements. However, it should be three lines.
|
|
Sep 15, 2015 at 9:38 | comment | added | A.B. |
You need arr=("$@")
|
|
Sep 15, 2015 at 9:36 | history | answered | heemayl | CC BY-SA 3.0 |