Menu

#566 bug related to looking for a hiphen/dash

Chess
open
nobody
None
1
2016-07-10
2016-07-10
favna
No

Clearly the output for wget --help | grep "-H" is not right. You see the garbled characters. Whether it happens evry time or every second time, you get garbled characters.

This is with gnuwin32 grep version 2.5.4

though I tested the grep with GOW too but that's an identical file.. FC says it's identical and it's v2.5.4 and 96,256 bytes. And anyhow, as you see, the gnuwin32 one is first in my path.

C:\Users\user>wget --help | grep "-H"
SYSTEM_WGETRC = c:/progra~1/wget/eUsagtec:/w gegtrc
ep [sOyPsTwIgOeNt]r.c. .= PCA:T\TPErRoNg r[aFmI LFEi]l.e.s.
x8Try `6g)r\egpn -u-whien3l2/pe't cf/owrg emtorrce
information.--
bug

C:\Users\user>where grep
C:\Program Files (x86)\GnuWin32\bin\grep.exe
C:\Program Files (x86)\Gow\bin\grep.exe

C:\Users\user>

C:\Users\user>wget --help | grep "-H"
SYSTEM_WGETRC = c:/progra~1/wget/eUsagtec:/w gegtrc
ep [sOyPsTwIgOeNt]r.c. .= PCA:T\TPErRoNg r[aFmI LFEi]l.e.s.
x8Try `6g)r\egpn -u-whien3l2/pe't cf/owrg emtorrce
information.

C:\Users\user>where grep
C:\Program Files (x86)\GnuWin32\bin\grep.exe
C:\Program Files (x86)\Gow\bin\grep.exe

C:\Users\user>"C:\Program Files (x86)\GnuWin32\bin\grep.exe" --version
GNU grep 2.5.4

Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

C:\Users\user>wget --help | "C:\Program Files (x86)\Gow\bin\grep.exe" "-H"
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\gnuwin32/etc/wgetrc
Usage: C:\Program Files (x86)\Gow\bin\grep.exe [OPTION]... PATTERN [FILE]...
Try `C:\Program Files (x86)\Gow\bin\grep.exe --help' for more information.

C:\Users\user>wget --help | "C:\Program Files (x86)\Gow\bin\grep.exe" "-H"
Usage: C:\Program Files (x86)\Gow\bin\grep.exe [OPTION]... PATTERN [FILE]...
SYSTTrEyM _`WCG:E\TRPCr o=g rca:/progmr aF~i1l/ewsg e(xt8/6e)t\cG/owwg\ebtirnc\ ep.seyxsew g-e-threcl p=' Cf:o\rPr omgorraem iFnifloersm a(txi8o6n).\ nuwin32/etc/wgetrc

C:\Users\user>wget --help | "C:\Program Files (x86)\Gow\bin\grep.exe" "-H"
Usage: C:\Program Files (x86)\Gow\bin\grep.exe [OPTION]... PATTERN [FILE]...
Try `C:\Program Files (x86)\Gow\bin\grep.exe --help' for more information.
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\gnuwin32/etc/wgetrc

C:\Users\user>wget --help | "C:\Program Files (x86)\Gow\bin\grep.exe" "-H"
Usage: C:\Program Files (x86)\Gow\bin\grep.exe [OPTION]... PATTERN [FILE]...
Try `C:\Program Files (x86)\Gow\bin\grep.exe --heSlYpS'T EfMo_rW GmEoTrReC i=n fco:r/mpartoigorna.~
/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\gnuwin32/etc/wgetrc

C:\Users\user>wget --help | "C:\Program Files (x86)\Gow\bin\grep.exe" "-H"
Usage: C:\Program Files (x86)\Gow\bin\grep.exe [OPTION]... PATTERN [FILE]...
Try `C:\Program Files (x86)\Gow\bin\grep.exe --help' for more informSaYtSiToEnM._
GETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\gnuwin32/etc/wgetrc

C:\Users\user>wget --help | "C:\Program Files (x86)\Gow\bin\grep.exe" "-H"
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\gnuwin32/etc/wgetrc
Usage: C:\Program Files (x86)\Gow\bin\grep.exe [OPTION]... PATTERN [FILE]...
Try `C:\Program Files (x86)\Gow\bin\grep.exe --help' for more information.

C:\Users\user>"C:\Program Files (x86)\Gow\bin\grep.exe" --version
GNU grep 2.5.4

Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

C:\Users\user>


Discussion