165 |
static FILE * |
static FILE * |
166 |
execute_command(XARGS *xp) |
execute_command(XARGS *xp) |
167 |
{ |
{ |
168 |
int limit = exec_line_limit(0); |
int limit; |
169 |
STRBUF *comline = strbuf_open(0); |
STRBUF *comline = strbuf_open(0); |
170 |
int count = 0; |
int count = 0; |
171 |
int length; |
int length; |
179 |
meta_p = locatestring(xp->command, "%s", MATCH_FIRST); |
meta_p = locatestring(xp->command, "%s", MATCH_FIRST); |
180 |
if (meta_p) { |
if (meta_p) { |
181 |
strbuf_nputs(comline, xp->command, meta_p - xp->command); |
strbuf_nputs(comline, xp->command, meta_p - xp->command); |
182 |
|
limit = exec_line_limit(strlen(meta_p + 2)); |
183 |
} else { |
} else { |
184 |
strbuf_puts(comline, xp->command); |
strbuf_puts(comline, xp->command); |
185 |
|
limit = exec_line_limit(0); |
186 |
} |
} |
187 |
/* |
/* |
188 |
* Append arguments as many as possible. |
* Append arguments as many as possible. |