This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]