]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool: Fix mistake in last commit.
authorBruno Haible <bruno@clisp.org>
Mon, 13 Dec 2021 02:03:13 +0000 (03:03 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Dec 2021 02:03:13 +0000 (03:03 +0100)
gnulib-tool

index 878b9588f26b01709f89eba708c88da57bf5ccfa..58e1859c547d3c72c89603fffe847bf408aea921 100755 (executable)
@@ -5844,11 +5844,11 @@ s,//*$,/,'
     # _AC_LIBOBJ_ALLOCA, invoked from AC_FUNC_ALLOCA.
     # All the m4_pushdef/m4_popdef logic in func_emit_initmacro_start/_end
     # does not help to avoid this error.
-    if grep '  lib/alloca\.c$' "$tmp"/new-files; then
+    if grep '  lib/alloca\.c$' "$tmp"/new-files >/dev/null; then
       # alloca.c will be present in $sourcebase.
       echo "  AC_CONFIG_LIBOBJ_DIR([$sourcebase])"
     else
-      if grep '        tests=lib/alloca\.c$' "$tmp"/new-files; then
+      if grep '        tests=lib/alloca\.c$' "$tmp"/new-files >/dev/null; then
         # alloca.c will be present in $testsbase.
         echo "  AC_CONFIG_LIBOBJ_DIR([$testsbase])"
       fi