mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Amend closing parenthesis for explaining "multiple words (separated by spaces)"
@@ -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
|
# For bash
|
||||||
|
Reference in New Issue
Block a user