Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Is this answer different/better from the ones already given?
    – SiKing
    Commented Aug 12, 2021 at 22:36
  • 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. Commented Aug 16, 2021 at 15:38