Selaa lähdekoodia

Add proper quoting

Alois Mahdal 8 vuotta sitten
vanhempi
commit
35e104843e
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      bin/notifirc

+ 2
- 2
bin/notifirc Näytä tiedosto

83
     local suff=""
83
     local suff=""
84
     while true;
84
     while true;
85
     do
85
     do
86
-        test $lines_read -ge $limit_l && break
86
+        test $lines_read -ge "$limit_l" && break
87
         IFS= read -r line || break
87
         IFS= read -r line || break
88
         (( lines_read++ ))
88
         (( lines_read++ ))
89
-        test ${#line} -gt $limit_c && suff=…
89
+        test ${#line} -gt "$limit_c" && suff=…
90
         line=${line:0:$limit_c}$suff
90
         line=${line:0:$limit_c}$suff
91
         echo "$line"
91
         echo "$line"
92
     done
92
     done