Skip to main content
10 events
when toggle format what by license comment
Apr 16, 2022 at 21:14 comment added Gabriel Staples @tripleee, thanks for fixing the quotes. I addressed your point and fixed my answer by changing A_array=($A) to IFS=" " read -r -d '' -a A_array <<< "$A" as a recommended "Option 2" to split the multi-word string into an array.
Apr 16, 2022 at 21:11 history edited Gabriel Staples CC BY-SA 4.0
added 27 characters in body
Apr 16, 2022 at 21:05 history edited Gabriel Staples CC BY-SA 4.0
added 1020 characters in body
Apr 16, 2022 at 19:21 comment added tripleee The array variant will break in mysterious ways if the value contains shell metacharacters. You can't quote it, either, because that prevents the shell from breaking it into multiple array elements. (I added quoting where it was missing to several answers here, including earlier in this answer.)
Apr 16, 2022 at 19:19 history edited tripleee CC BY-SA 4.0
Fix broken quoting
Mar 7, 2022 at 22:15 history edited Gabriel Staples CC BY-SA 4.0
added 58 characters in body
Mar 7, 2022 at 22:08 history edited Gabriel Staples CC BY-SA 4.0
added 48 characters in body
Mar 7, 2022 at 20:12 history edited Gabriel Staples CC BY-SA 4.0
added 692 characters in body
Mar 7, 2022 at 20:05 history edited Gabriel Staples CC BY-SA 4.0
added 692 characters in body
Mar 7, 2022 at 19:58 history answered Gabriel Staples CC BY-SA 4.0