Explorar el Código

Do not convert output URI to lowercase

Preserve lowercase matching in query mode (not in bookmark mode).
Alois Mahdal hace 10 años
padre
commit
015d5cfdca
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1
    2
      src/ffoo/saturnin_www.sh

+ 1
- 2
src/ffoo/saturnin_www.sh Ver fichero

@@ -137,7 +137,6 @@ kw2uri() {
137 137
     # Turn keyword or query (like "g hello" for google) to URI
138 138
     #
139 139
     local line
140
-    declare -l line
141 140
     while read line;
142 141
     do
143 142
         line="$line "
@@ -146,7 +145,7 @@ kw2uri() {
146 145
         debug -v kw query
147 146
         if test -n "$query";
148 147
         then
149
-            local fmt=$(inigrep -j -1 -p www.query.$kw)
148
+            local fmt=$(inigrep -j -1 -p www.query.${kw,,})
150 149
             debug -v fmt
151 150
             printf "$fmt\n" "$query"
152 151
         else