Re:Macintosh Files in Search Window
Following your more tightly defined definition of requirements I get a
similar result.
I note that when there are no files loaded and I do the Grep against the
file it does not provide the carriage returns.
If I load the file and still do the Grep against the file (and not the
document) it correctly inserts the carriage returns.
I think this is a FEATURE that should be reported to Borland Technical
Support for correction.
My guess is that Grep is using BufEditFile( ) and not the newer
BufEditFileAuto( ) and as a result the Mac EOL is not being properly sensed.
Another issue (I don't normally use Grep so maybe this is the way it is
supposed to work.)
If I load your file and delete some lines containing the string to be
matched and then do a Grep against the file (and not the document) the
result is obtained by scanning the document and not the file (i.e. the
deleted lines with matching strings are not reported as matches).
Is this the way Grep should work or is it YAF (yet another FEATURE)?
--
-- Thom Little --
www.tlaNET.net -- Thom Little Associates, Ltd.
"Jake" <
XXXX@XXXXX.COM >wrote in message
Quote
Thom,
Thanx for your effort. You did a 'Documents' grep, and since the
document in memory has been adjusted, it looks fine. The problem I have
is with 'File' grep (same dialog, just choose 'Files' as the source),
which gives the whole-file-on-on-line problem.
I am doing development with mac folks, and will be doing a lot of
file greps in their code base.
P.S. your settings are the same as mine.
Thanx,
Jake.
Thom Little wrote:
>You sent me a sample file and I tried a File Grep on it. The results
that I
>got were totally consistent with any other search output I have ever
gotten.
>
>I provided you before and after screenshot. Were the results I got
>different from your results? Did I perform the correct test for you?
>