=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/awk/main.c,v retrieving revision 1.66 retrieving revision 1.67 diff -c -r1.66 -r1.67 *** src/usr.bin/awk/main.c 2023/11/25 16:31:33 1.66 --- src/usr.bin/awk/main.c 2023/11/28 20:54:38 1.67 *************** *** 1,4 **** ! /* $OpenBSD: main.c,v 1.66 2023/11/25 16:31:33 millert Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved --- 1,4 ---- ! /* $OpenBSD: main.c,v 1.67 2023/11/28 20:54:38 millert Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved *************** *** 23,29 **** THIS SOFTWARE. ****************************************************************/ ! const char *version = "version 20231124"; #define DEBUG #include --- 23,29 ---- THIS SOFTWARE. ****************************************************************/ ! const char *version = "version 20231127"; #define DEBUG #include *************** *** 180,185 **** --- 180,187 ---- } if (strcmp(argv[1], "--csv") == 0) { /* turn on csv input processing */ CSV = true; + if (fs) + WARNING("danger: don't set FS when --csv is in effect"); argc--; argv++; continue; *************** *** 201,206 **** --- 203,210 ---- break; case 'F': /* set field separator */ fs = setfs(getarg(&argc, &argv, "no field separator")); + if (CSV) + WARNING("danger: don't set FS when --csv is in effect"); break; case 'v': /* -v a=1 to be done NOW. one -v for each */ vn = getarg(&argc, &argv, "no variable name");