From 21612f17339d7c63100686733feff42689b0f618 Mon Sep 17 00:00:00 2001 From: Michael Diamond Date: Thu, 23 Apr 2020 11:39:12 -0700 Subject: [PATCH] Move link into text and point to the "right" answer. --- SC2206.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SC2206.md b/SC2206.md index e1aa6f5..50ac28c 100644 --- a/SC2206.md +++ b/SC2206.md @@ -24,13 +24,12 @@ mapfile -t array <<< "$var" printf '%s\n' "$var" | while IFS="" read -r line; do array+=("$line"); done ``` -If it's a line with multiple words (separated by spaces, other delimiters can be chosen with IFS), each of which should be an element: +If it's a line with multiple words (separated by spaces, other delimiters can be chosen with IFS), [each of which should be an element](https://stackoverflow.com/a/30212526): ```sh # For bash and ksh IFS=" " read -r -a array <<< "$var" -``` -1. https://stackoverflow.com/questions/1469849 +``` ### Rationale: