If you don't have time or manage to debug it, I'll try some other time.
By the way, I found it useful to search and replace for this term also:
Code: Select all
&</action>
that end part of that action line being replaced with:
Code: Select all
&"</action>'"
Code: Select all
"'<action>sh -c "
Code: Select all
grep '&</action>' *
Code: Select all
grep '<input>' *
Code: Select all
grep 'export -f' *
grep '<action[[:space:]]>' *
and similar...
to find in which files likely problems are. Then I open these up in geany for the actual search/replace style conversion. That part of the process is surprisingly quick once I've practiced it.
NOTE: pfind also needs usleep (though works without it), which isn't in XenialDog64 at least.
EDIT: /usr/local/pfind/pfilesearch/pfilesearch also needs a few fixes for conversion. I've also attached my converted version and that seems to fix things. Still some minor pfind bugs I see, but I think they are in the non-converted one anyway on XenialDog64, which is where the attached files are from. Need tested though and I'd advise a diff on the original and these converted ones to see exactly how I did it.
pfind was certainly not the easiest program to convert since quite a lot of sh -c commands are required in it, and the need to search multiple files to find the need - but easy once the method to do so is worked out.
EDIT: Still some debugging required - it is not forgetting the previous search result. Also, may need to try it first without the modified pfilesearch additon and using the Advanced buttons search first of all (then partially working with dash). Unless I get round to further debugging of course.
EDIT2: May have fixed the bulk of it. Was a bashism (case statement form I think in pfilesearch, so needed to amend pfind line 429 to:
"' <action>bash -c ". $PROGPATH/fu ... /action>'"
It is possible there are some other instances I've used sh -c when bash -c will be necessary. For speed of conversion I guess always easiest to use bash -c though who knows what trouble that may cause later!
EDIT3: Note that you get rid of the initial pfind grep error messages if you export a value for LANG before running the program. Generally not important. There are some other small error messages during running, but I think they are there whether using bash or dash (?). Program seems to work fine though.
EDIT4: Downloads deleted since I have since converted most recent pfind 6.3
wiak