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