Mail Archives: djgpp/2000/04/20/07:58:45
I'm using win98's DOS shell and grep 2.4, and if I do e.g.
grep \". *.ini |more
in the c:\windows directory (or a search in a different file set, if there
just are some matches), I get strange output:
C:\WINDOWS>grep \". *.ini |more
netdet.ini:HKLM,System\CurrentControlSet\Services\VxD\NWLINK,cachesize,,"16"
netdet.ini:HKLM,System\CurrentControlSet\Services\VxD\NWLINK\Ndi\params\cach
esiz
e,"",,"16"
netdet.ini:%26%\protocol.ini,NWLINK$,,"cachesize=16"
win.ini:rhide.exe="D:\DJGPP\BIN\rhide.exe"
grep: |more: No such file or directory (ENOENT)
grep: EMP=C:\TEMP: No such file or directory (ENOENT)
In a more complex situation, there were trash characters instead of
"EMP=C:\TEMP".
It looks like a bug in DOS (the same thing occur to BCC's grep), somehow
DOS seems to report the wrong argc/argv if there's a \" in the parameter
list. In any case it would be cool if DJGPP could add a workaround for it.
Erik
- Raw text -