NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/38000: AI inside grep should be switched off by default



>Number:         38000
>Category:       bin
>Synopsis:       AI inside grep should be switched off by default
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 11 20:45:00 +0000 2008
>Originator:     cheusov%tut.by@localhost
>Release:        NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #2: 
Tue Dec 25 17:42:38 EET 2007 
cheusov%chen.chizhovka.net@localhost:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
GNU grep has AI inside and tries to detect whether processed files are
text of binary instead of just doing its job - grepping.  I've found
it while processing my emails for spam and often see messages like 

   Can't read 'Binary file /home/cheusov/Mail/mail/spam/1143 matches'.

I also saw these annoying messages previously when worked hard with
Japanese and Russian utf-8 text files.

GNU grep (NetBSD's default) has -a, --text, --binary-files=text
options for doing what I want (switching off this stupid AI) but all
these options are not standard - I don't want to make my scripts
dependant on GNU. In whould be great to see -a mode should switched on
by default in NetBSD.

I think, those who loves magic may set aliases in .shrc
and use AI from interactive shell.

P.S.
http://www.opengroup.org/onlinepubs/009695399/utilities/grep.html

>Fix:

Unknown


Home | Main Index | Thread Index | Old Index