* m4/isnand.m4 (gl_FUNC_ISNAND): Use 'test -n "$arg"', not
'test "$arg"'.
* m4/isnanf.m4 (gl_FUNC_ISNANF): Likewise.
* m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
+2023-10-07 Bruno Haible <bruno@clisp.org>
+
+ isnan: Avoid dangerous shell coding pattern.
+ * m4/isnand.m4 (gl_FUNC_ISNAND): Use 'test -n "$arg"', not
+ 'test "$arg"'.
+ * m4/isnanf.m4 (gl_FUNC_ISNANF): Likewise.
+ * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
+
2023-10-05 Bruno Haible <bruno@clisp.org>
doc: Mention xstrerror.
fi
fi
dnl The variable gl_func_isnand set here is used by isnan.m4.
- if test $gl_cv_func_isnand_no_libm = yes || test "$ISNAND_LIBM"; then
+ if test $gl_cv_func_isnand_no_libm = yes || test -n "$ISNAND_LIBM"; then
gl_func_isnand=yes
else
gl_func_isnand=no
fi
fi
dnl The variable gl_func_isnanf set here is used by isnan.m4.
- if test $gl_cv_func_isnanf_no_libm = yes || test "$ISNANF_LIBM"; then
+ if test $gl_cv_func_isnanf_no_libm = yes || test -n "$ISNANF_LIBM"; then
save_LIBS="$LIBS"
LIBS="$LIBS $ISNANF_LIBM"
gl_ISNANF_WORKS
fi
fi
dnl The variable gl_func_isnanl set here is used by isnan.m4.
- if test $gl_cv_func_isnanl_no_libm = yes || test "$ISNANL_LIBM"; then
+ if test $gl_cv_func_isnanl_no_libm = yes || test -n "$ISNANL_LIBM"; then
save_LIBS="$LIBS"
LIBS="$LIBS $ISNANL_LIBM"
gl_FUNC_ISNANL_WORKS