search_tests.sh: Unquote results
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Sat, 3 Jun 2017 21:33:38 +0000 (17:33 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Sat, 3 Jun 2017 21:33:38 +0000 (17:33 -0400)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

tests/search_tests.sh

index 73844f6..b668e52 100755 (executable)
@@ -67,7 +67,9 @@ for f in "$@"; do
        c=`echo "$c" | sed 's/\(_[0-9]*alt[0-9][0-9]*\)/\\\\(\1\\\\)\\\\?/g;s/\(_args[0-9][0-9]*\)/\\\\(\1\\\\)\\\\?/'`
        b=`echo "$b" | sed 's/_[0-9]*alt[0-9][0-9]*//g;s/_args[0-9][0-9]*//'`
        # Search the orig nit file in the list
-       cat listfull.out | grep -- "\(^'\|/\)$c.nit" || {
+       {
+               grep -- "\(^'\|/\)$c.nit" listfull.out | xargs -E '' -- printf '%s\n'
+       } || {
                res=1
                echo >&2 "No test $b.nit found for $f"
                test "$verbose" == "true" || continue