Date: Tue, 30 Jul 2013 06:49:30 GMT From: YAMAGUCHI Takanori <y@maya.st> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/180937: fgrep stalls when a file contains null character Message-ID: <201307300649.r6U6nUmH015070@oldred.freebsd.org> Resent-Message-ID: <201307300650.r6U6o0Jm003772@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 180937 >Category: bin >Synopsis: fgrep stalls when a file contains null character >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 30 06:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: YAMAGUCHI Takanori >Release: 9.1-RELEASE >Organization: >Environment: FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC >Description: "fgrep -i numeric_or_symbol" or "grep -F -i numeric_or_symbol" stalls when a file contains null character. "fgrep -i alphabet_only" does not stall. fgrep without -i does not. grep, egrep and original GNU fgrep (ports/textproc/gnugrep) does not. >How-To-Repeat: dd if=/dev/zero bs=1 count=1 | fgrep -i 1 >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307300649.r6U6nUmH015070>