From eb3fa1455c022bf6338c16ff96229ab8bdc1d5a1 Mon Sep 17 00:00:00 2001 From: Martin Bagge / brother Date: Tue, 21 Apr 2020 12:44:16 +0200 Subject: [PATCH] Addressing issue raised in PR 1888. --- SC2046.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2046.md b/SC2046.md index 3fe5d93..65e366d 100644 --- a/SC2046.md +++ b/SC2046.md @@ -43,7 +43,7 @@ This is because `pkg-config` outputs `-lssl -lcrypto`, which you want to break u The power of using an array becomes evident when you want to combine, for example, the command result with user-provided arguments: compile () { - args=( $(pkg-config --libs openssl) "${@}" ) + args=( "$(pkg-config --libs openssl)" "${@}" ) gcc "${args[@]}" client.c } compile -DDEBUG