mapfile recipe is bash 4.4+, -t was added in it

Ville Skyttä
2022-04-29 16:35:48 +03:00
parent 8c9ea41068
commit 193bf36d5f

@@ -11,7 +11,7 @@ array=( $(mycommand) )
If it outputs multiple lines, each of which should be an element:
```sh
# For bash 4.x, must not be in posix mode, may use temporary files
# For bash 4.4+, must not be in posix mode, may use temporary files
mapfile -t array < <(mycommand)
# For bash 3.x+, must not be in posix mode, may use temporary files