summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-22 01:27:14 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-22 01:30:06 +0200
commitec8f7d918e7150194005752063e688c9610d5d77 (patch)
tree038d32caea0256879332ee448b06628116fb44ce
parent17122d4376394a0af3fc1319e62bef15a5ea4343 (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-xbin/grepc4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/grepc b/bin/grepc
index fad90bf..9b6e033 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -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 "$@";