From 193bf36d5f21bca75a3c0485c28f3c19ca35dbc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Fri, 29 Apr 2022 16:35:48 +0300 Subject: [PATCH] `mapfile` recipe is bash 4.4+, `-t` was added in it --- SC2207.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2207.md b/SC2207.md index 075707d..ec4e364 100644 --- a/SC2207.md +++ b/SC2207.md @@ -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