jEdit Community - Resources for users of the jEdit Text Editor
Console plugin not working with Windows 2000 Find command
Submitted by fenwar on Wednesday, 16 August, 2006 - 15:37
I like to pipe output of commands to Find.exe in windows, e.g. (an actual example)

svn log -v -q | find "json.js"

(When I don't know where a file that has been removed from project is in my svn repository...)

anyway this works absolutely fine in Windows 2000 command prompt, but in jEdit Console with the same input I get the following error message:

FIND: Parameter format not correct
svn: Write error: Invalid argument


I can run the first part of the command e.g. "svn log -v -q" fine.

If I try piping the output at all it seems to be ignored (e.g. "svn log -v -q | more" does not work)

However using the '>' operator to append output to a file works e.g. "svn log -v -q > temp.txt"

But still find does not work - e.g. in windows 2000 I could now type

find "json.js" temp.txt and get the desired result, but jEdit Console still returns

FIND: Parameter format not correct

I am using jEdit 4.3pre6 using Java 1.5.0_06 and Console 4.2.6.4

Has anyone else encountered/found a workaround for this issue (other than not using jEdit console)? Are there other combinations of Java/jEdit/Console versions without this problem?

Thanks in advance

Paul F
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
addenda:
by fenwar on Wed, 16/08/2006 - 15:48
I have tried double and single quotes for the search parameter (shouldn't be an issue anyway?!)

"find /?" DOES work in jEdit console, but this is the only way I've managed to run find at all which is obviously not much use...!

Further addenda: found the problem

This is to do with the way cmd /c handles quotes it finds in the command string, unless there is whitespace in the string the quotes are stripped(!) The switches available don't seem to let me do anything to prevent this behaviour which is a tad annoying.

I managed to get the desired output by wrapping the whole console command in single quotes thus:

'svn log -v -q | find "json.js"'

Which will do as a workaround I suppose... I would still be grateful if anyone knows of a better way.

Paul
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300