Timeline for how to count the length of an array defined in bash?
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S May 15, 2020 at 7:41 | history | suggested | oz123 | CC BY-SA 4.0 |
fix syntax of array definition
|
| May 14, 2020 at 17:13 | review | Suggested edits | |||
| S May 15, 2020 at 7:41 | |||||
| Jan 10, 2016 at 7:57 | comment | added | gardenhead |
Note that you should put ${array[@]} in double quotes. Otherwise, word-splitting will be performed and you will get undesirable results, on inputs like array=("item 1" "item 2" "item 3").
|
|
| Jan 10, 2016 at 7:41 | answer | added | Donald Darden | timeline score: 2 | |
| Mar 28, 2015 at 19:20 | history | edited | Gilles 'SO- stop being evil' |
edited tags
|
|
| Mar 28, 2015 at 3:17 | vote | accept | AGamePlayer | ||
| Mar 28, 2015 at 2:56 | answer | added | steeldriver | timeline score: 167 | |
| Mar 28, 2015 at 2:46 | history | asked | AGamePlayer | CC BY-SA 3.0 |