/[global]/global/libutil/xargs.c
ViewVC logotype

Diff of /global/libutil/xargs.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by h-iwamoto, Sun Oct 30 14:54:52 2005 UTC revision 1.4 by h-iwamoto, Fri Nov 4 16:56:26 2005 UTC
# Line 165  repeat_find_next(void) Line 165  repeat_find_next(void)
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;
# Line 179  execute_command(XARGS *xp) Line 179  execute_command(XARGS *xp)
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.

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26