mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Addressing issue raised in PR 1888.
@@ -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
|
||||
|
Reference in New Issue
Block a user