Timeline for Bash array with spaces in elements
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 16, 2021 at 15:38 | comment | added | subham prasad | yes, as you can see the output, each element inside renditions array is a string with spaces, and we loop it through without quotes around ${renditions[@]} then space will be treated as element delimiter, so here I am wrapping double quotes around ${renditions[@]}, which gives me the above output. | |
Aug 12, 2021 at 22:36 | comment | added | SiKing | Is this answer different/better from the ones already given? | |
Aug 12, 2021 at 19:57 | review | Late answers | |||
Aug 12, 2021 at 22:36 | |||||
Aug 12, 2021 at 19:35 | history | answered | subham prasad | CC BY-SA 4.0 |