projects
/
notmuch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: wrap 'wc -l' results in arithmetic evaluation to strip whitespace
[notmuch]
/
test
/
T580-thread-search.sh
diff --git
a/test/T580-thread-search.sh
b/test/T580-thread-search.sh
index 6f7106db475a60cb472f073cd7b391ef56b44434..512559a3aff90086809247e2cb3e8ef0a6451e32 100755
(executable)
--- a/
test/T580-thread-search.sh
+++ b/
test/T580-thread-search.sh
@@
-15,7
+15,7
@@
count=0
success=0
for id in $(notmuch search --output=messages '*'); do
count=$((count +1))
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
if [ "$matches" = 1 ]; then
success=$((success + 1))
fi