Lines Matching refs:p
143 FILE *p; in do_shell() local
151 p = popen(cmd, "r"); in do_shell()
152 if (!p) { in do_shell()
157 nread = fread(buf, 1, sizeof(buf), p); in do_shell()
173 if (pclose(p) == -1) { in do_shell()
348 char *tmp, *name, *res, *endptr, *prev, *p; in eval_clause() local
368 prev = p = tmp; in eval_clause()
384 while (*p) { in eval_clause()
385 if (nest == 0 && *p == ',') { in eval_clause()
386 *p = 0; in eval_clause()
390 prev = p + 1; in eval_clause()
391 } else if (*p == '(') { in eval_clause()
393 } else if (*p == ')') { in eval_clause()
397 p++; in eval_clause()
458 const char *p = *str; in expand_dollar_with_args() local
467 if (*p != '(') { in expand_dollar_with_args()
468 *str = p; in expand_dollar_with_args()
472 p++; in expand_dollar_with_args()
473 q = p; in expand_dollar_with_args()
485 pperror("unterminated reference to '%s': missing ')'", p); in expand_dollar_with_args()
490 return eval_clause(p, q - p, argc, argv); in expand_dollar_with_args()
501 const char *in, *p; in __expand_string() local
509 p = in = *str; in __expand_string()
512 if (*p == '$') { in __expand_string()
513 in_len = p - in; in __expand_string()
514 p++; in __expand_string()
515 expansion = expand_dollar_with_args(&p, argc, argv); in __expand_string()
521 in = p; in __expand_string()
525 if (is_end(*p)) in __expand_string()
528 p++; in __expand_string()
531 in_len = p - in; in __expand_string()
537 *str = p; in __expand_string()