diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-05-22 01:27:14 +0200 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-05-22 01:30:06 +0200 |
commit | ec8f7d918e7150194005752063e688c9610d5d77 (patch) | |
tree | 038d32caea0256879332ee448b06628116fb44ce | |
parent | 17122d4376394a0af3fc1319e62bef15a5ea4343 (diff) |
grepc: bugfix
SC2068: Double quote array expansions to avoid re-splitting elements.
Reported-by: shellcheck(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rwxr-xr-x | bin/grepc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -493,7 +493,7 @@ main() { files="$(mktemp -t 'grepc.XXXXXX')"; - grepc_parse_cmd $@; + grepc_parse_cmd "$@"; grepc_find_files "$identifier" >"$files"; grepc_search "$identifier" \ | if [ -n "$lflag" ]; then @@ -505,4 +505,4 @@ main() } -main $@; +main "$@"; |