This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
wordexp bug
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: newlib at sourceware dot org
- Date: Fri, 17 Aug 2012 08:35:51 -0500
- Subject: wordexp bug
AFAICS wordexp(3) is completely broken, returning WRDE_SYNTAX no
matter what I supply as the string. STC attached.
Yaakov
Cygwin/X
#include <stdio.h>
#include <wordexp.h>
int
main (void)
{
wordexp_t we;
int i, ret;
ret = wordexp ("foo", &we, 0);
for (i = 0; i < we.we_wordc; i++)
printf ("%s ", we.we_wordv[i]);
wordfree (&we);
return ret;
}