Tags:
archive_me1Add my vote for this tag create new tag
, view all tags
Environment
July Beta
Apache 1.3.20
Windows NT 4.0sp6
mod_perl/1.25_01-dev
ActiveState Perl Build 623

Doing a search on "Thoeny" returned 4 items plus 19 lines of:

fgrep -i -l "Thoeny" *.txt  05 Jan 1989 - 10:40 - NEW  TWikiGuest

for a total of 23 items.

Interestingly, the whole command "fgrep -i -l "Thoeny" *.txt" is underlined as though it was a TWiki topic and clicking on it brings up "this topic does not exist...".

"Ref-by" will also return the command used to envoke the external app as part of it's output:

egrep -i -l "Web *Home[^A-Za-z]" *.txt  05 Jan 1989 - 10:40 - NEW  TWikiGuest  

"Changes" includes many lines of (in addition to some expected output):

egrep -i -l ".*" *.txt  05 Jan 1989 - 10:40 - NEW  TWikiGuest

In all cases, the command text is underlined.

"Index" works ok.

"Diff" works ok too.

It's astounding (to me) that "Index" and "diff" are working now! They didn't in the Dec release!

If I can just figure out why I can't get login to work, maybe the rest of RCS is (at last!) working too! (BTW, I might have posted the problem i'm having with login on the support web instead of here in the codev web where a problem with a beta belongs - sorry)

_(Note: I added <pre> tags to the above output to distinguish it.)_

-- DavidLeBlanc - 12 Jul 2001

Interesting. I've never seen this and I can't reproduce on my current version. I did add a debug hook in Search.pm. If you uncomment the writeDebug line in _traceExec at the top of the module, you may get some useful output in data/debug.txt

-- JohnTalintyre - 12 Jul 2001

[ DavidLeBlanc - 13 Jul 2001 ] John, I did that, and the (verbose!) output of the "changes" command listed 40 file names (including *.txt,v files - should those be searched for changes?), and TWiki ouput 21 items of actual text followed by 21 lines of

 egrep -i -l ".*" *.txt  05 Jan 1989 - 10:40 - NEW  TWikiGuest  
I can send you the actual output if it's wanted.

Normally, the grep command echos a list of filenames that are then turned into topic links - instead, the command itself is being echoed and turned into a link. Haven't seen this exact error, but I would put writeDebug statements into Search.pm to see what is happening, and in particular to check the command string - search Codev for more info on debugging.

-- RichardDonkin - 13 Jul 2001

The search command only look for .txt files, so I can't see how you picked up .txt,v files. Feel free to email me the debug.txt output.

-- JohnTalintyre - 13 Jul 2001

David, could you please verify if this bug is fixed in the latest Beta release?

-- PeterThoeny - 09 Aug 2001

Nothing heard for some time on this, so I've changed status to BugRejected.

-- JohnTalintyre - 28 Sep 2001

Environment:

TWiki Dec 2001
Apache 1.3.20
Windows 2000 SP2
mod_perl/1.26_01-dev
ActiveState Perl 5.6.1 build 631
Cygwin for bash, RCS 5.7-2 and other tools

I ran into exactly this problem while using ActivePerl on Windows under ModPerl, with CygWin tools for grep and RCS. The problem is the $cmdQuote setting within TWiki.cfg - this is based on the $OS setting, which is 'WINDOWS', but I'm using PERL5SHELL set to 'bash -c' (as in CookbookActivePerlSetup), and bash requires single quotes. After quite a lot of debugging, which included a message about sh.exe stack dumping, I found a fix.

Sample debug output:

02 Mar 2002 - 15:39 Search exec: chdir to /twiki/data/Main -> ^M
02 Mar 2002 - 15:39 Search: cmd = c:/cygwin/bin/ls *.txt | c:/cygwin/bin/egrep -
i "\.*"^M
02 Mar 2002 - 15:39 Search exec: c:/cygwin/bin/ls *.txt | c:/cygwin/bin/egrep -i
 "\.*" -> CookbookActivePerlSetup.txt^M
CookbookActivePerlSetup.txt,v^M
CookbookActivePerlSetup.txt,v~~~^M
CookbookActivePerlTestenv.txt^M
CookbookActivePerlTestenv.txt,v^M
CookbookActivePerlTestenv.txt,v~~~^M
....
WindowsInstallCookbookPartTwo.txt^M
WindowsInstallCookbookPartTwo.txt,v^M
WindowsInstallCookbookPartTwo.txt,v~~~^M
sh.exe.stackdump^M
^M

This is specific to ModPerl - changing the installation back to CGI fixes this problem.... Incidentally, using bash cured some other problems, e.g. WebIndex produced no output at all with the default cmd.exe shell.

The solution, at least for my setup, was to do:

$cmdQuote = "'";
in TWiki.cfg, instead of the other two lines (i.e. lines 134-135). WebIndex and topic-name searching are now working OK.

I think the best long-term solution is to enhance testenv (already started in CookbookActivePerlTestenv) so that it runs tests for this sort of thing (like the GNU configure approach) and warns if the values in TWiki.cfg are not right.

I have set this back to BugReport since this is reproducible (I saved the TWiki.cfg etc) and fixable.

-- RichardDonkin - 02 Mar 2002


Category: TWikiPatches
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2002-03-02 - RichardDonkin
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.