[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Two bugs?



I asked:
2. Can one of the gurus tell me why this simple search program doesn't find the string when run by hitting while having "run test.pgm" on the command line, but it does find the string when the cursor is placed at the top of the file and then "run test. pgm" is eXeCuted (e.g., by hitting F9)???
There followed the XPL code and a segment from the file it was run against,
but Carl asked that I encode it, because apparent ascii 26s got into the
file (they weren't in the original. So here are both encoded:
XPLeNCODE v2.0
b-gin [UNTITLED]
{<}sv01,[cr|lf]{>}[BX_]se /issue.{<}pv01{>}{<}pv01{>}/[Q2_]{<
}ex{>}[cr|lf]
-nd
XPLeNCODE

XPLeNCODE v2.0
b-gin [UNTITLED]
In any case, I know of one place where she briefly addressed{032}
the issue.[cr|lf][cr|lf]In the Q&A period following her West{032}
Point talk, "Philosophy: Who Needs It" (1974), she was asked
-nd
XPLeNCODE

To be clear, here are the two conditions, where the program is named "t.pgm":
1. It finds the text if I put on the cm line "run t.pgm" (without quotes of course), put the cursor at the top of the text to be searched (top of file in my test), then hit F9 to eXeCute t.pgm.
2. I reports "Not found" if if put my cursor at the top of the text to be
searched, go to the cm line, type "run t.pgm" (without quotes) and hit ENTER.

Baffling.
And again, if I take out from t.pgm one of the cr-lfs , that is: instead of , everything works as expected and the cursor is put where expected--i.e., after the first cr-lf.

Extra baffling.

Thanks,
Harry


Harry Binswanger
hb@xxxxxxxx