mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated Sc2086 (markdown)
@@ -22,7 +22,7 @@ Sometimes you want to split on spaces, like when building a command line.
|
|||||||
options="-j 5 -B"
|
options="-j 5 -B"
|
||||||
make $options file
|
make $options file
|
||||||
|
|
||||||
Just quoting this doesn't work. Instead, you should have used an array (bash):
|
Just quoting this doesn't work. Instead, you should have used an array (bash, ksh):
|
||||||
|
|
||||||
options=(-j 5 -B)
|
options=(-j 5 -B)
|
||||||
make "${options[@]}" file
|
make "${options[@]}" file
|
||||||
|
Reference in New Issue
Block a user