[BACK]Return to xargs.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / xargs

Diff for /src/usr.bin/xargs/xargs.c between version 1.37 and 1.38

version 1.37, 2023/12/22 17:12:13 version 1.38, 2023/12/23 15:58:58
Line 296 
Line 296 
                 foundeof = *eofstr != '\0' &&                  foundeof = *eofstr != '\0' &&
                     strcmp(argp, eofstr) == 0;                      strcmp(argp, eofstr) == 0;
   
                 /* Do not make empty args unless they are quoted */                  /*
                 if ((zflag || argp != p || wasquoted) && !foundeof) {                   * Do not make empty args unless they are quoted or
                    * we are run as "find -0" and not at EOF.
                    */
                   if (((zflag && ch != EOF) || argp != p || wasquoted) &&
                       !foundeof) {
                         *p++ = '\0';                          *p++ = '\0';
                         *xp++ = argp;                          *xp++ = argp;
                         if (Iflag) {                          if (Iflag) {

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38