Lines Matching defs:words
49 * Perform shell word expansion on `words' and place the resulting list
50 * of words in `we'. See wordexp(3).
55 wordexp(const char * __restrict words, wordexp_t * __restrict we, int flags)
67 if ((error = we_check(words, flags)) != 0) {
71 if ((error = we_askshell(words, we, flags)) != 0) {
103 we_askshell(const char *words, wordexp_t *we, int flags)
108 long nwords, nbytes; /* Number of words, bytes from child */
143 * builtin on `words'.
153 if (asprintf(&cmd, "wordexp%c%s\n", *ifs, words) < 0)
171 * the expanded words separated by nulls.
186 * and string storage buffers for the expanded words we're about to
258 we_check(const char *words, int flags)
264 while ((c = *words++) != '\0') {
280 while ((c = *words++) != '\0' && c != '`')
281 if (c == '\\' && (c = *words++) == '\0')
292 if ((c = *words++) == '\0')
295 if (flags & WRDE_NOCMD && *words != '(')
298 while ((c = *words++) != '\0') {
300 if ((c = *words++) == '\0')
311 while ((c = *words++) != '\0') {
313 if ((c = *words++) == '\0')
323 --words;