regression test to make sure this continues to work.
+2011-05-07 Paul Smith <psmith@gnu.org>
+
+ * read.c (parse_file_seq): Ensure existence checks use glob().
+
2011-05-07 Eli Zaretskii <eliz@gnu.org>
* job.c (construct_command_argv_internal): Don't assume shellflags
#endif /* !NO_ARCHIVES */
/* glob() is expensive: don't call it unless we need to. */
- if (!(flags & PARSEFS_EXISTS) || strpbrk (name, "?*[") == NULL)
+ if (!(flags & PARSEFS_EXISTS) && strpbrk (name, "?*[") == NULL)
{
globme = 0;
i = 1;
+2011-05-07 Paul Smith <psmith@gnu.org>
+
+ * scripts/functions/wildcard: Verify wildcard used to test for
+ file existence/non-existence.
+
2011-05-02 Paul Smith <psmith@gnu.org>
* scripts/functions/sort: Add a test for Savannah bug #33125.
!,
'', "\n");
+# TEST #5: wildcard used to verify file existence
+
+touch('xxx.yyy');
+
+run_make_test(q!exists: ; @echo file=$(wildcard xxx.yyy)!,
+ '', "file=xxx.yyy\n");
+
+unlink('xxx.yyy');
+
+run_make_test(q!exists: ; @echo file=$(wildcard xxx.yyy)!,
+ '', "file=\n");
+
1;