Browse Source

remove stupid debug code in wordexp

rs-1.0
Rich Felker 15 years ago
parent
commit
90f09a0dde
  1. 1
      src/misc/wordexp.c

1
src/misc/wordexp.c

@ -83,7 +83,6 @@ int wordexp(const char *s, wordexp_t *we, int flags)
cmd = malloc(len); cmd = malloc(len);
if (!cmd) return WRDE_NOSPACE; if (!cmd) return WRDE_NOSPACE;
snprintf(cmd, len, "printf %%s\\\\0 %s %s", s, redir); snprintf(cmd, len, "printf %%s\\\\0 %s %s", s, redir);
printf("{%s}\n", cmd);
f = popen(cmd, "r"); f = popen(cmd, "r");
free(cmd); free(cmd);
if (!f) return WRDE_NOSPACE; if (!f) return WRDE_NOSPACE;

Loading…
Cancel
Save