Sfoglia il codice sorgente

Fix inigrep query quoting

Absence of quotes breaks queries with spaces.  We're already taking care
of files (implicit or given on command line).
Alois Mahdal 10 anni fa
parent
commit
615a4b38d2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/shellfu/saturnin.sh

+ 1
- 1
src/shellfu/saturnin.sh Vedi File

@@ -112,7 +112,7 @@ saturnin__conf() {
112 112
     fi
113 113
     debug -v files
114 114
     #shellcheck disable=SC2086
115
-    _saturnin__conf__load "${files[@]}" | inigrep $ig_limit $ig_mode $ig_query
115
+    _saturnin__conf__load "${files[@]}" | inigrep $ig_limit $ig_mode "$ig_query"
116 116
     return "${PIPESTATUS[0]}"
117 117
 }
118 118