grep.c (4c14980baab5aa678fa8a1ca046892cf30e92d71) grep.c (e898a3af97f97f74c0fb22032bbd163f7cc92a05)
1/* $NetBSD: grep.c,v 1.6 2011/04/18 03:48:23 joerg Exp $ */
2/* $FreeBSD$ */
3/* $OpenBSD: grep.c,v 1.42 2010/07/02 22:18:03 tedu Exp $ */
4
5/*-
6 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
7 *
8 * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav

--- 548 unchanged lines hidden (view full) ---

557 cflags &= ~REG_NOSUB;
558 break;
559 case 'x':
560 xflag = true;
561 cflags &= ~REG_NOSUB;
562 break;
563 case 'z':
564 fileeol = '\0';
1/* $NetBSD: grep.c,v 1.6 2011/04/18 03:48:23 joerg Exp $ */
2/* $FreeBSD$ */
3/* $OpenBSD: grep.c,v 1.42 2010/07/02 22:18:03 tedu Exp $ */
4
5/*-
6 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
7 *
8 * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav

--- 548 unchanged lines hidden (view full) ---

557 cflags &= ~REG_NOSUB;
558 break;
559 case 'x':
560 xflag = true;
561 cflags &= ~REG_NOSUB;
562 break;
563 case 'z':
564 fileeol = '\0';
565 cflags &= ~REG_NEWLINE;
565 break;
566 case BIN_OPT:
567 if (strcasecmp("binary", optarg) == 0)
568 binbehave = BINFILE_BIN;
569 else if (strcasecmp("without-match", optarg) == 0)
570 binbehave = BINFILE_SKIP;
571 else if (strcasecmp("text", optarg) == 0)
572 binbehave = BINFILE_TEXT;

--- 154 unchanged lines hidden ---
566 break;
567 case BIN_OPT:
568 if (strcasecmp("binary", optarg) == 0)
569 binbehave = BINFILE_BIN;
570 else if (strcasecmp("without-match", optarg) == 0)
571 binbehave = BINFILE_SKIP;
572 else if (strcasecmp("text", optarg) == 0)
573 binbehave = BINFILE_TEXT;

--- 154 unchanged lines hidden ---