]> git.notmuchmail.org Git - notmuch/blobdiff - test/T580-thread-search.sh
test: wrap 'wc -l' results in arithmetic evaluation to strip whitespace
[notmuch] / test / T580-thread-search.sh
index 6f7106db475a60cb472f073cd7b391ef56b44434..512559a3aff90086809247e2cb3e8ef0a6451e32 100755 (executable)
@@ -15,7 +15,7 @@ count=0
 success=0
 for id in $(notmuch search --output=messages '*'); do
     count=$((count +1))
-    matches=$(notmuch search --output=threads "$id" | wc -l)
+    matches=$((`notmuch search --output=threads "$id" | wc -l`))
     if [ "$matches" = 1 ]; then
        success=$((success + 1))
     fi