From e47441db6405d33a8f6ca48f0677b8a178d2afed Mon Sep 17 00:00:00 2001 From: Szymon Siwek Date: Tue, 15 Jun 2021 23:06:24 +0200 Subject: [PATCH] fix for bash-4 (#923) bash-4 does not support process substitution --- contrib/completion/bash/sdk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/completion/bash/sdk b/contrib/completion/bash/sdk index 57c51cf4..2820d17f 100644 --- a/contrib/completion/bash/sdk +++ b/contrib/completion/bash/sdk @@ -32,9 +32,10 @@ __sdkman_complete_command() { done ;; install|list) + curl --silent "${SDKMAN_CANDIDATES_API}/candidates/all" | \ while IFS= read -d, -r candidate; do candidates+=($candidate) - done < <(curl --silent "${SDKMAN_CANDIDATES_API}/candidates/all") + done ;; env) candidates=("init install clear")