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

Diff for /src/usr.bin/cut/cut.c between version 1.3 and 1.4

version 1.3, 1997/01/15 23:42:24 version 1.4, 1997/09/12 04:12:51
Line 174 
Line 174 
                         }                          }
                 }                  }
                 if (*p)                  if (*p)
                         errx(1, "[-cf] list: illegal list value\n");                          errx(1, "[-cf] list: illegal list value");
                 if (!stop || !start)                  if (!stop || !start)
                         errx(1, "[-cf] list: values may not include zero\n");                          errx(1, "[-cf] list: values may not include zero");
                 if (stop > _POSIX2_LINE_MAX)                  if (stop > _POSIX2_LINE_MAX)
                         errx(1, "[-cf] list: %d too large (max %d)\n",                          errx(1, "[-cf] list: %d too large (max %d)",
                             stop, _POSIX2_LINE_MAX);                              stop, _POSIX2_LINE_MAX);
                 if (maxval < stop)                  if (maxval < stop)
                         maxval = stop;                          maxval = stop;
Line 237 
Line 237 
                 output = 0;                  output = 0;
                 for (isdelim = 0, p = lbuf;; ++p) {                  for (isdelim = 0, p = lbuf;; ++p) {
                         if (!(ch = *p))                          if (!(ch = *p))
                                 errx(1, "%s: line too long.\n", fname);                                  errx(1, "%s: line too long.", fname);
                         /* this should work if newline is delimiter */                          /* this should work if newline is delimiter */
                         if (ch == sep)                          if (ch == sep)
                                 isdelim = 1;                                  isdelim = 1;

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