* BUG: grep (GNU grep) 2.24
@ 2016-03-21 13:40 Gordon Grimes
2016-03-21 13:51 ` Houder
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Gordon Grimes @ 2016-03-21 13:40 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 336 bytes --]
Hi,
I had generated a FILE by simply doing a 'find' on a directory and used grep to cull the results. I wasn't working so I repeated and tried the following trivial 'grep':
% wc -l FILE
48786
% grep . FILE
2240
Very wrong.
I reverted to version 2.21 and everything now works as expected:
% grep . FILE
48786
[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 19389 bytes --]
Cygwin Configuration Diagnostics
Current System Time: Mon Mar 21 09:29:49 2016
Windows 7 Professional Ver 6.1 Build 7601 Service Pack 1
Running in Terminal Service session
Path: .
C:\cygwin\bin
C:\home\top\scripts
C:\home\top\perl
C:\home\top\bin
C:\cygwin\system32
.
C:\app\gordon_grimes\product\11.1.0\client_1\bin
C:\app\gordon_grimes\product\11.1.0\client_1\network\admin
C:\program Files\perforce
C:\software\eclipse\TPTPAgent\bin
C:\home\top\bin\MyCopyOfOra10BIN
C:\software\apache-maven-3.0.3\bin
C:\windows\system32
Output from C:\cygwin\bin\id.exe
UID: 197609(Gordon) GID: 197121(None)
197121(None) 197610(HomeUsers)
545(Users) 4(INTERACTIVE)
66049(CONSOLE LOGON) 11(Authenticated Users)
15(This Organization) 113(Local account)
4095(CurrentSession) 66048(LOCAL)
262154(NTLM Authentication) 401408(Medium Mandatory Level)
SysDir: C:\Windows\system32
WinDir: C:\Windows
PWD = '/cygdrive/c/home'
CYGWIN = 'nodosfilewarning'
HOME = '/cygdrive/c/home'
HOMEPATH = '\Users\Gordon'
emailtemplates = 'c:/perforce/depot/Symantec_Licensing/OLP/Components/Platform-Config/trunk/src/main/resources/core/base/olp/ebe/share/DOMAIN_HOME/templates/email/'
ESHELL = 'c:/cygwin/bin/emacsbash.exe'
APPDATA = 'C:\Users\Gordon\AppData\Roaming'
emailstrings = 'c:/perforce/depot/Symantec_Licensing/OLP/Components/Platform-Config/trunk/src/main/resources/core/base/olp/ebe/share/DOMAIN_HOME/resources/'
ebe = 'c:/perforce/depot/Symantec_Licensing/olp/components/ebe/branches'
ProgramW6432 = 'C:\Program Files'
intake = 'c:/perforce/depot/Symantec_Licensing/OLP/projects/Intake'
D = 'C:/Users/Gordon/Desktop'
nodosfilewarning = '1'
TERM = 'emacs'
SHELL = 'C:/emacs/emacs-24.5/libexec/emacs/24.5/i686-pc-mingw32/cmdproxy.exe'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 42 Stepping 7, GenuineIntel'
WINDIR = 'C:\Windows'
sasdev = 'c:/perforce/depot/Symantec_Licensing/olp/components/sas/modules/trunk'
TMPDIR = 'c:/tmp'
PERL5LIB = '/cygdrive/c/home/top/perl/lib'
EMACSDATA = 'c:/emacs/emacs-24.5/share/emacs/24.5/etc'
dadse = 'c:/home/DadsTeam/emailList'
sas = 'c:/perforce/depot/Symantec_Licensing/olp/components/sas/modules'
PUBLIC = 'C:\Users\Public'
L = 'c:/home/top/lisp2451'
EMACSPATH = 'c:/emacs/emacs-24.5/bin'
absdev = 'c:/perforce/depot/Symantec_Licensing/olp/components/platform-aBS//trunk'
comp = 'c:/perforce/depot/Symantec_Licensing/olp/components'
USERDOMAIN = 'Gordon4'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\ProgramData'
ebedev = 'c:/perforce/depot/Symantec_Licensing/olp/components/ebe/trunk'
sasprod = 'c:/perforce/depot/Symantec_Licensing/olp/components/sas/modules/trunk'
windows_tracing_flags = '3'
windows_tracing_logfile = 'C:\BVTBin\Tests\installpackage\csilogfile.log'
EMACS = 't'
TEMP = '/cygdrive/c/temp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
EL = 'c:/emacs/emacs-24.5/share/emacs/24.5/lisp'
rare4 = 'c:/perforce/depot/Symantec_Licensing/OLP/projects/Intake/dixons_RARE'
EM_PARENT_PROCESS_ID = '13116'
TERMCAP = 'emacs:co#137:tc=unknown:'
edp4 = '$DEPOT/Symantec_Licensing/OLP/components/EBE/Docs/Projects/ABS/'
colpapidocs = 'c:/perforce/depot/Consumer_Online_Services/Core_API/olp_core/trunk//docs/APIs/'
cost = 'c:/perforce/depot/Norton_Online/server/COST-UI/Trunk'
hld = 'c:/perforce/depot/Symantec_Licensing/docs/server/hLDandIntegrationDocs'
pinatadev = 'c:/perforce/depot/Symantec_Licensing/olp/components/Scheduler/trunk/src/Scheduler/src/com/symantec/eb/pinata'
USERNAME = 'Gordon'
amswdev = 'c:/perforce/depot/Norton_Online/server/AMSWeb/trunk'
dads = 'c:/home/DadsTeam'
colp = 'c:/perforce/depot/Consumer_Online_Services/Core_API/olp_core/trunk/'
res = 'c:/sym/resources'
posa = 'C:/sym/2011Projects/DixonPOSA'
colparchdocs = 'c:/perforce/depot/Consumer_Online_Services/Core_API/olp_core/trunk//docs/architecture_docs'
PROCESSOR_LEVEL = '6'
ProgramFiles(x86) = 'C:\Program Files (x86)'
TOPDIR = '/cygdrive/c/home/top'
PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
rare = 'C:/sym/2011Projects/DixonRARE'
FP_NO_HOST_CHECK = 'NO'
nobujobsprod = '/olbu'
sos = 'c:/perforce/depot/Symantec_Licensing/Server/SOS/documentation/'
online = 'c:/perforce/depot/norton_online'
SYSTEMDRIVE = 'C:'
schprod_config = 'c:/perforce/depot/Symantec_Licensing/olp/components/Scheduler/trunk/r4.4/config'
JAVA_HOME = 'c:/program files/java/jdk1.6.0_27'
schdev = 'c:/perforce/depot/Symantec_Licensing/olp/components/Scheduler/trunk/src/Scheduler/src/com/symantec/eb'
RASERVER_HOME = 'c:/software/eclipse/TPTPAgent'
USERPROFILE = 'C:\Users\Gordon'
LANG = 'ENU'
CLIENTNAME = 'SYMCLAPTOP4'
in = 'c:/perforce/depot/Symantec_Licensing/OLP/projects/Intake'
GNULISPDIR = 'c:/emacs/emacs-24.5/share/emacs/24.5/lisp'
im = 'c:/Program Files/Yahoo!/Messenger/Profiles/dg_grimes/Archive/Messages/'
nobujobsdev = 'c:/perforce/depot/Symantec_Licensing/olp/components/Scheduler/trunk/src/Scheduler/src/com/symantec/eb/olbu'
LOGONSERVER = '\\GORDON4'
P4CLIENT = 'OLP4'
emacs_dir = 'c:/emacs/emacs-24.5'
CommonProgramW6432 = 'C:\Program Files\Common Files'
PROCESSOR_ARCHITECTURE = 'AMD64'
LOCALAPPDATA = 'C:\Users\Gordon\AppData\Local'
procolp = '/colp'
toolscolp = '/depot/Consumer_Online_Services/Core_API/olp_core/trunk/tools/'
amsedev = 'c:/perforce/depot/Symantec_Licensing/olp/components/amse/trunk'
amswprod = 'c:/perforce/depot/Norton_Online/server/AMSWeb/r2011.2.0'
symlic = 'c:/perforce/depot/Symantec_Licensing'
ProgramData = 'C:\ProgramData'
EXECIGNORE = '*.dll'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
HOMEDRIVE = 'C:'
abs = 'c:/perforce/depot/Symantec_Licensing/olp/components/platform-aBS/'
ptdev = 'c:/perforce/depot/Symantec_Licensing/olp/components/ebe/trunk/src/ebe-pt/src/main/java/com/symantec/eb/pt'
cos = 'c:/perforce/depot/Consumer_Online_Services'
AWKPATH = '.:/cygdrive/c/home/top/awk:/usr/local/share/awk'
COMSPEC = 'C:\Windows\system32\cmd.exe'
BASH_ENV = 'c:/home/.bashrc'
olp = 'c:/perforce/depot/Symantec_Licensing/olp'
TMP = '/cygdrive/c/tmp'
SYSTEMROOT = 'C:\Windows'
ddl = 'c:/sym/resources/ddls/colpddl.sql'
PROCESSOR_REVISION = '2a07'
P4USER = 'gordon_grimes'
posa4 = 'c:/perforce/depot/Symantec_Licensing/OLP/projects/Intake/dixonsPOSA'
CLASSPATH = 'C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip'
conflict = 'c:/perforce/depot/Consumer_Online_Services/Core_API/olp_core/trunk//db_scripts/conflict_handlers'
sch = 'c:/perforce/depot/Symantec_Licensing/olp/components/Scheduler/trunk'
gobawprod = 'c:/perforce/depot/Symantec_Licensing/Server/GOBAW/r1.0'
apispecs = 'c:/perforce/depot/Symantec_Licensing/OLP/Components/EBE/Docs/ebe/API_SPECS'
dst = '/dst/trunk'
top = '/cygdrive/c/home/top'
PROGRAMFILES = 'C:\Program Files'
SHLIB_DIR = '/cygdrive/c/home/top/scripts'
LOCALLISPDIR = 'c:/home/top/lisp2451'
fff = 'c:/home/top/lisp2451/env/FastFindFiles.el'
DISPLAY = 'w32'
pidgin = 'C:/users/gordon_Grimes/appdata/roaming/.purple/logs/yahoo/dg_grimes'
NUMBER_OF_PROCESSORS = '4'
ORACLE_HOME = 'c:/app/gordon_grimes/product/11.1.0/client_1'
INSIDE_EMACS = '24.5.1,comint'
asl.log = 'Destination=file'
toolsebe = 'c:/perforce/depot/Symantec_Licensing/olp/tools'
sym = 'c:/sym'
SESSIONNAME = 'RDP-Tcp#0'
P4PORT = 'perforce.ges.symantec.com:1666'
EMACSDOC = 'c:/emacs/emacs-24.5/share/emacs/24.5/etc'
pro10 = 'c:/sym/2010projects'
COMPUTERNAME = 'GORDON4'
ddlc = 'c:/sym/resources/ddls/colpddl-clean.sql'
sv = 'C:/sym/2009projects/replicationErrorIssue/sVCaptureBlackout/may2010'
ja = 'c:/java'
OLDPWD = '/cygdrive/c/home/tmp'
_ = '/usr/bin/cygcheck'
HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Installations
(default) = '\??\C:\cygwin'
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygwin\setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
(default) = '\??\C:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
(default) = 'C:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygwin\Installations
(default) = '\??\C:\cygwin'
18e1493157c9418c = '\??\C:\Program Files (x86)\IDriveWindows'
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygwin\setup
(default) = 'C:\cygwin'
obcaseinsensitive set to 1
Cygwin installations found in the registry:
System: Key: c5e39b7a9d22bafb Path: C:\cygwin
User: Key: c5e39b7a9d22bafb Path: C:\cygwin
c: hd NTFS 591945Mb 64% CP CS UN PA FC Main
d: cd N/A N/A
e: hd NTFS 1907725Mb 57% CP CS UN PA FC Elements
v: hd NTFS 102399Mb 10% CP CS UN PA FC Encrypted Local Disk
w: fd NTFS 1023999Mb 57% CP CS UN PA FC Encrypted Archive
z: net NTFS 461437Mb 31% CP CS UN PA FC
C:\cygwin / system binary,auto
C:\cygwin\bin /usr/bin system binary,auto
C:\cygwin\lib /usr/lib system binary,auto
cygdrive prefix /cygdrive user binary,posix=0,auto
Found: C:\cygwin\bin\awk
-> C:\cygwin\bin\gawk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Found: C:\windows\system32\find.exe
Warning: C:\cygwin\bin\find.exe hides C:\windows\system32\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Not Found: perl
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\home\top\scripts\sed
Not Found: ssh
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Found: C:\cygwin\bin\vi.exe
Not Found: vim
38k 2013/07/19 C:\cygwin\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
"cygargp-0.dll" v0.0 ts=2013-07-19 10:07
16k 2013/03/26 C:\cygwin\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
"cygattr-1.dll" v0.0 ts=2013-03-26 13:26
180k 2015/03/23 C:\cygwin\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
"cygblkid-1.dll" v0.0 ts=2015-03-23 04:46
64k 2013/03/07 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
"cygbz2-1.dll" v0.0 ts=2013-03-06 21:54
2231k 2016/03/08 C:\cygwin\bin\cygcrypto-1.0.0.dll - os=4.0 img=0.0 sys=5.2
"cygcrypto-1.0.0.dll" v0.0 ts=2016-03-08 04:41
27k 2015/11/17 C:\cygwin\bin\cygffi-6.dll - os=4.0 img=0.0 sys=5.2
"cygffi-6.dll" v0.0 ts=2015-11-17 17:14
55k 2016/03/06 C:\cygwin\bin\cygformw-10.dll - os=4.0 img=0.0 sys=5.2
"cygformw-10.dll" v0.0 ts=2016-03-06 14:27
70k 2016/02/27 C:\cygwin\bin\cyggcc_s-seh-1.dll - os=4.0 img=0.0 sys=5.2
"cyggcc_s-seh-1.dll" v0.0 ts=2016-02-27 00:48
40k 2014/05/27 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=0.0 sys=5.2
"cyggdbm-4.dll" v0.0 ts=1969-12-31 19:00
13k 2014/05/27 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=0.0 sys=5.2
"cyggdbm_compat-4.dll" v0.0 ts=1969-12-31 19:00
528k 2015/12/06 C:\cygwin\bin\cyggmp-10.dll - os=4.0 img=0.0 sys=5.2
"cyggmp-10.dll" v0.0 ts=2015-12-06 03:37
30k 2015/01/27 C:\cygwin\bin\cyghistory7.dll - os=4.0 img=0.0 sys=5.2
"cyghistory7.dll" v0.0 ts=2015-01-26 22:51
361k 2015/11/24 C:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.4 sys=5.2
"cygicons-0.dll" v0.0 ts=2015-11-24 02:54
1009k 2015/02/20 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=0.0 sys=5.2
"cygiconv-2.dll" v0.0 ts=2015-02-20 12:07
40k 2015/09/20 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=0.0 sys=5.2
"cygintl-8.dll" v0.0 ts=2015-09-20 14:10
6k 2016/01/24 C:\cygwin\bin\cyglsa64.dll - os=4.0 img=0.0 sys=5.2
"cyglsa64.dll" v0.0 ts=2016-01-24 05:26
139k 2015/11/09 C:\cygwin\bin\cyglzma-5.dll - os=4.0 img=0.0 sys=5.2
"cyglzma-5.dll" v0.0 ts=2015-11-09 01:12
114k 2016/01/11 C:\cygwin\bin\cygmagic-1.dll - os=4.0 img=0.0 sys=5.2
"cygmagic-1.dll" v0.0 ts=2016-01-11 17:19
168k 2015/10/09 C:\cygwin\bin\cygman-2-7-4.dll - os=4.0 img=0.0 sys=5.2
"cygman-2-7-4.dll" v0.0 ts=2015-10-08 22:12
22k 2015/10/09 C:\cygwin\bin\cygmandb-2-7-4.dll - os=4.0 img=0.0 sys=5.2
"cygmandb-2-7-4.dll" v0.0 ts=2015-10-08 22:18
29k 2016/03/06 C:\cygwin\bin\cygmenuw-10.dll - os=4.0 img=0.0 sys=5.2
"cygmenuw-10.dll" v0.0 ts=2016-03-06 14:27
345k 2016/03/06 C:\cygwin\bin\cygmpfr-4.dll - os=4.0 img=0.0 sys=5.2
"cygmpfr-4.dll" v0.0 ts=2016-03-06 11:29
53k 2016/03/06 C:\cygwin\bin\cygncurses++w-10.dll - os=4.0 img=0.0 sys=5.2
"cygncurses++w-10.dll" v0.0 ts=2016-03-06 14:31
279k 2016/03/06 C:\cygwin\bin\cygncursesw-10.dll - os=4.0 img=0.0 sys=5.2
"cygncursesw-10.dll" v0.0 ts=2016-03-06 14:26
319k 2015/06/01 C:\cygwin\bin\cygp11-kit-0.dll - os=4.0 img=0.0 sys=5.2
"cygp11-kit-0.dll" v0.0 ts=2015-06-01 14:02
14k 2016/03/06 C:\cygwin\bin\cygpanelw-10.dll - os=4.0 img=0.0 sys=5.2
"cygpanelw-10.dll" v0.0 ts=2016-03-06 14:27
465k 2016/03/02 C:\cygwin\bin\cygpcre-1.dll - os=4.0 img=0.0 sys=5.2
"cygpcre-1.dll" v0.0 ts=2016-03-02 01:38
39k 2015/04/09 C:\cygwin\bin\cygpipeline-1.dll - os=4.0 img=0.0 sys=5.2
"cygpipeline-1.dll" v0.0 ts=2015-04-09 16:04
41k 2013/10/21 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=0.0 sys=5.2
"cygpopt-0.dll" v0.0 ts=2013-10-21 16:52
207k 2015/01/27 C:\cygwin\bin\cygreadline7.dll - os=4.0 img=0.0 sys=5.2
"cygreadline7.dll" v0.0 ts=2015-01-26 22:51
11k 2015/07/17 C:\cygwin\bin\cygsigsegv-2.dll - os=4.0 img=0.0 sys=5.2
"cygsigsegv-2.dll" v0.0 ts=2015-07-17 17:35
89k 2015/03/23 C:\cygwin\bin\cygsmartcols-1.dll - os=4.0 img=0.0 sys=5.2
"cygsmartcols-1.dll" v0.0 ts=2015-03-23 04:46
424k 2016/03/08 C:\cygwin\bin\cygssl-1.0.0.dll - os=4.0 img=0.0 sys=5.2
"cygssl-1.0.0.dll" v0.0 ts=2016-03-08 04:41
1339k 2016/02/27 C:\cygwin\bin\cygstdc++-6.dll - os=4.0 img=0.0 sys=5.2
"cygstdc++-6.dll" v0.0 ts=2016-02-27 01:11
66k 2016/02/04 C:\cygwin\bin\cygtasn1-6.dll - os=4.0 img=0.0 sys=5.2
"cygtasn1-6.dll" v0.0 ts=2016-02-04 08:53
53k 2016/03/06 C:\cygwin\bin\cygticw-10.dll - os=4.0 img=0.0 sys=5.2
"cygticw-10.dll" v0.0 ts=2016-03-06 14:26
166k 2013/06/12 C:\cygwin\bin\cygustr-1.dll - os=4.0 img=0.0 sys=5.2
"cygustr-1.dll" v0.0 ts=2013-06-12 04:42
15k 2015/03/23 C:\cygwin\bin\cyguuid-1.dll - os=4.0 img=0.0 sys=5.2
"cyguuid-1.dll" v0.0 ts=2015-03-23 04:46
1206k 2015/11/27 C:\cygwin\bin\cygxml2-2.dll - os=4.0 img=0.0 sys=5.2
"cygxml2-2.dll" v0.0 ts=2015-11-27 15:22
80k 2014/11/19 C:\cygwin\bin\cygz.dll - os=4.0 img=0.0 sys=5.2
"cygz.dll" v0.0 ts=2014-11-19 18:08
3327k 2016/01/24 C:\cygwin\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
"cygwin1.dll" v0.0 ts=2016-01-24 05:26
Cygwin DLL version info:
DLL version: 2.4.1
DLL epoch: 19
DLL old termios: 5
DLL malloc env: 28
Cygwin conv: 181
API major: 0
API minor: 293
Shared data: 5
DLL identifier: cygwin1
Mount registry: 3
Cygwin registry name: Cygwin
Installations name: Installations
Cygdrive default prefix:
Build date:
Shared id: cygwin1S5
Can't find the cygrunsrv utility, skipping services check.
Cygwin Package Information
Last downloaded files to: C:\cygwin-packages64
Last downloaded files from: http://cygwin.mirrors.pair.com/
Package Version Status
_autorebase 001003-2 OK
alternatives 1.3.30c-10 OK
base-cygwin 3.8-1 OK
base-files 4.2-4 OK
bash 4.3.42-4 OK
bzip2 1.0.6-2 OK
ca-certificates 2.6-1 OK
chere 1.4-1 OK
coreutils 8.25-1 OK
cpio 2.11-3 OK
cygutils 1.4.15-2 OK
cygutils-extra 1.4.15-2 OK
cygwin 2.4.1-1 OK
dash 0.5.8-3 OK
diffutils 3.3-3 OK
dos2unix 7.3.3-1 OK
editrights 1.03-1 OK
file 5.25-1 OK
findutils 4.6.0-1 OK
gawk 4.1.3-1 OK
getent 2.18.90-4 OK
grep 2.21-2 OK
groff 1.22.3-1 OK
gzip 1.6-1 OK
hostname 3.13-1 OK
info 6.1-2 OK
ipc-utils 1.0-2 OK
less 481-1 OK
libargp 20110921-2 OK
libattr1 2.4.46-1 OK
libblkid1 2.25.2-2 OK
libbz2_1 1.0.6-2 OK
libffi6 3.2.1-2 OK
libgcc1 5.3.0-3 OK
libgdbm4 1.11-1 OK
libgmp10 6.1.0-3p1 OK
libiconv 1.14-3 OK
libiconv2 1.14-3 OK
libintl8 0.19.5.1-2 OK
liblzma5 5.2.2-1 OK
libmpfr4 3.1.4-1 OK
libncursesw10 6.0-4.20160305 OK
libopenssl100 1.0.2g-3 OK
libp11-kit0 0.22.1-1 OK
libpcre1 8.38-2 OK
libpipeline1 1.4.0-1 OK
Empty package libpopt0
libpopt0 1.16-1 OK
libreadline7 6.3.8-1 OK
libsigsegv2 2.10-2 OK
libsmartcols1 2.25.2-2 OK
libstdc++6 5.3.0-3 OK
libtasn1_6 4.7-1 OK
libustr1 1.0.4-12 OK
libuuid1 2.25.2-2 OK
libxml2 2.9.3-1 OK
login 1.11-1 OK
lynx 2.8.7-2 OK
man-db 2.7.4-1 OK
mintty 2.2.4-0 OK
ncurses 6.0-4.20160305 OK
openssl 1.0.2g-3 OK
p11-kit 0.22.1-1 OK
p11-kit-trust 0.22.1-1 OK
popt 1.16-1 OK
rebase 4.4.2-1 OK
run 1.3.4-2 OK
run2 0.4.2-2 OK
sed 4.2.2-3 OK
tar 1.28-1 OK
terminfo 6.0-4.20160305 OK
time 1.7.2-1 OK
tzcode 2016b-1 OK
util-linux 2.25.2-2 OK
vim-minimal 7.4.1558-1 OK
wdiff 1.2.2-1 OK
which 2.20-2 OK
xz 5.2.2-1 OK
zlib0 1.2.8-3 OK
Use -h to see help about each section
[-- Attachment #3: Type: text/plain, Size: 218 bytes --]
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BUG: grep (GNU grep) 2.24
2016-03-21 13:40 BUG: grep (GNU grep) 2.24 Gordon Grimes
@ 2016-03-21 13:51 ` Houder
2016-03-21 13:56 ` Achim Gratz
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Houder @ 2016-03-21 13:51 UTC (permalink / raw)
To: cygwin
On 2016-03-21 14:40, Gordon Grimes wrote:
> Hi,
>
> I had generated a FILE by simply doing a 'find' on a directory and
> used grep to cull the results. I wasn't working so I repeated and
> tried the following trivial 'grep':
>
> % wc -l FILE
> 48786
> % grep . FILE
> 2240
>
> Very wrong.
>
> I reverted to version 2.21 and everything now works as expected:
> % grep . FILE
> 48786
@@ grep -v '.' vrf_xxx.txt | wc -l
80
@@ grep '.' vrf_xxx.txt | wc -l
356
@@ wc -l vrf_xxx.txt
436 vrf_xxx.txt
@@ grep --version
grep (GNU grep) 2.24
...
I am content.
Regards,
Henri
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BUG: grep (GNU grep) 2.24
2016-03-21 13:40 BUG: grep (GNU grep) 2.24 Gordon Grimes
2016-03-21 13:51 ` Houder
@ 2016-03-21 13:56 ` Achim Gratz
2016-03-21 14:06 ` Peter Rosin
2016-03-21 14:09 ` Marco Atzeri
2016-03-21 16:30 ` Eric Blake
3 siblings, 1 reply; 6+ messages in thread
From: Achim Gratz @ 2016-03-21 13:56 UTC (permalink / raw)
To: cygwin
Gordon Grimes <Gordon_Grimes <at> symantec.com> writes:
> % wc -l FILE
> 48786
> % grep . FILE
> 2240
>
> Very wrong.
You're aware that "." doesn't match empty lines?
Regards,
Achim.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BUG: grep (GNU grep) 2.24
2016-03-21 13:56 ` Achim Gratz
@ 2016-03-21 14:06 ` Peter Rosin
0 siblings, 0 replies; 6+ messages in thread
From: Peter Rosin @ 2016-03-21 14:06 UTC (permalink / raw)
To: cygwin
On 2016-03-21 14:56, Achim Gratz wrote:
> Gordon Grimes writes:
>> % wc -l FILE
>> 48786
>> % grep . FILE
>> 2240
>>
>> Very wrong.
>
> You're aware that "." doesn't match empty lines?
Agreed, that is relevant, but there's the difference between v2.21 and v2.24...
On a whim and given that we don't know what FILE is, I'd give this a go:
% LANG=C grep . FILE
Cheers,
Peter
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BUG: grep (GNU grep) 2.24
2016-03-21 13:40 BUG: grep (GNU grep) 2.24 Gordon Grimes
2016-03-21 13:51 ` Houder
2016-03-21 13:56 ` Achim Gratz
@ 2016-03-21 14:09 ` Marco Atzeri
2016-03-21 16:30 ` Eric Blake
3 siblings, 0 replies; 6+ messages in thread
From: Marco Atzeri @ 2016-03-21 14:09 UTC (permalink / raw)
To: cygwin
On 21/03/2016 14:40, Gordon Grimes wrote:
> Hi,
>
> I had generated a FILE by simply doing a 'find' on a directory and used grep to cull the results. I wasn't working so I repeated and tried the following trivial 'grep':
>
> % wc -l FILE
> 48786
> % grep . FILE
> 2240
may be was a grep -c . FILE
>
> Very wrong.
A bit vague statement.
>
> I reverted to version 2.21 and everything now works as expected:
> % grep . FILE
> 48786
>
Without seeing the FILE content I can not bu sure, but I will bet
on LANG settings for any discrepancy in your expectation
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BUG: grep (GNU grep) 2.24
2016-03-21 13:40 BUG: grep (GNU grep) 2.24 Gordon Grimes
` (2 preceding siblings ...)
2016-03-21 14:09 ` Marco Atzeri
@ 2016-03-21 16:30 ` Eric Blake
3 siblings, 0 replies; 6+ messages in thread
From: Eric Blake @ 2016-03-21 16:30 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1703 bytes --]
On 03/21/2016 07:40 AM, Gordon Grimes wrote:
> Hi,
>
> I had generated a FILE by simply doing a 'find' on a directory and used grep to cull the results. I wasn't working so I repeated and tried the following trivial 'grep':
>
> % wc -l FILE
> 48786
> % grep . FILE
> 2240
>
> Very wrong.
Umm, grep doesn't output counts unless you use 'grep -c'. Also, one of
the big changes in recent grep is more efficient handling of encoding
errors; remember, the regular expression '.' is only supposed to match
valid characters, and that an encoding error can cause grep to quit
checking; so in all likelihood, your problem stems from the fact that
the contents of FILE contain an encoding error in your current locale.
But, as others have already pointed out, you didn't post a simple
reproducible example for us to confirm, nor tell us what locale you are
using, nor tell us whether you have tried LC_ALL=C to see if forcing a
single-byte locale with no encoding errors cleans up the problem.
So, as the grep maintainer, I'm awaiting proof that there is a problem
(or confirmation that the bug is on your end, and not in grep) before I
worry about putting out another build of grep. Something like this is
repeatable:
$ printf 'a\n\x80\nc\n' | LC_ALL=en_US.UTF-8 wc -l
3
$ printf 'a\n\x80\nc\n' | LC_ALL=en_US.UTF-8 src/grep -c .
2
$ printf 'a\n\x80\nc\n' | LC_ALL=C src/grep -c .
3
Note how wc counts \n characters, regardless of encoding errors
elsewhere, while grep -c skips the \x80 line because it contains nothing
but encoding errors in UTF-8.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-03-21 16:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-21 13:40 BUG: grep (GNU grep) 2.24 Gordon Grimes
2016-03-21 13:51 ` Houder
2016-03-21 13:56 ` Achim Gratz
2016-03-21 14:06 ` Peter Rosin
2016-03-21 14:09 ` Marco Atzeri
2016-03-21 16:30 ` Eric Blake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).