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

Diff for /src/usr.bin/awk/main.c between version 1.66 and 1.67

version 1.66, 2023/11/25 16:31:33 version 1.67, 2023/11/28 20:54:38
Line 23 
Line 23 
 THIS SOFTWARE.  THIS SOFTWARE.
 ****************************************************************/  ****************************************************************/
   
 const char      *version = "version 20231124";  const char      *version = "version 20231127";
   
 #define DEBUG  #define DEBUG
 #include <stdio.h>  #include <stdio.h>
Line 180 
Line 180 
                 }                  }
                 if (strcmp(argv[1], "--csv") == 0) {    /* turn on csv input processing */                  if (strcmp(argv[1], "--csv") == 0) {    /* turn on csv input processing */
                         CSV = true;                          CSV = true;
                           if (fs)
                                   WARNING("danger: don't set FS when --csv is in effect");
                         argc--;                          argc--;
                         argv++;                          argv++;
                         continue;                          continue;
Line 201 
Line 203 
                         break;                          break;
                 case 'F':       /* set field separator */                  case 'F':       /* set field separator */
                         fs = setfs(getarg(&argc, &argv, "no field separator"));                          fs = setfs(getarg(&argc, &argv, "no field separator"));
                           if (CSV)
                                   WARNING("danger: don't set FS when --csv is in effect");
                         break;                          break;
                 case 'v':       /* -v a=1 to be done NOW.  one -v for each */                  case 'v':       /* -v a=1 to be done NOW.  one -v for each */
                         vn = getarg(&argc, &argv, "no variable name");                          vn = getarg(&argc, &argv, "no variable name");

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67