misplaced parenthesis corrected

GfEW
2024-11-28 15:59:26 +01:00
parent 84152f5662
commit 9dc263da37

@@ -23,7 +23,7 @@ array=()
mycommand | while IFS="" read -r line; do array+=("$line"); done mycommand | while IFS="" read -r line; do array+=("$line"); done
``` ```
If it outputs a line with multiple words (separated by spaces), other delimiters can be chosen with IFS, each of which should be an element: If it outputs a line with multiple words (separated by spaces, other delimiters can be chosen with IFS), each of which should be an element:
```sh ```sh
# For bash, uses temporary files # For bash, uses temporary files