RE: Re: Under Linux, "Find in Files" with a '$' character doesn't work

godstech <[email protected]> Mon, 30 Sep 2024 20:38:57 -0500
Newsgroups gmane.editors.scite.general
Message-ID <[email protected]>
Try single quotes to avoid interpolation:SciTE -grep ~~~~ "" "" '$2800'- Francisco 
-------- Mensaje original --------De: Jingcheng Zhang <[email protected]> Fecha: 30/9/2024  7:28 p. m.  (GMT-06:00) A: scite-interest <[email protected]> Asunto: [scite] Re: Under Linux, "Find in Files" with a '$' character doesn't work Hi Neil,I tried to search "\$2800", but the executed command becomes:SciTE -grep ~~~~ "" "" "\\$2800"The result is invalid, it adds another "\" character inside. But if I call SciTE in command line directly, it works:SciTE -grep ~~~~ "" "" "\$2800"This result is valid. So how can I remove the extra "\" character added by the Find in Files command?On Monday, September 30, 2024 at 2:03:54 PM UTC+8 Neil Hodgson wrote:Jingcheng Zhang:I cannot find a text with '$' in it, the result is invalid. But under windows it works correctly.Seems the '$' is hijacked by linux shell which makes the problem. How to solve?On Linux, the Find in Files command works by running another SciTE process with the text provided as a command-line argument.The '$' should be quoted with '\' to avoid shell interpretation so '\$'. This can be done in the Slash function.Another problem is that there is an extra layer of variable interpretation for $(variable) in SciTEBase::Execute that should be avoided for this case.It would likely be better to reimplement using threads instead of processes as is done for Windows and MacOS.Neil



-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/522a0c2f-3413-45a0-b502-8e4158c61873n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/66fb52b2.4a0a0220.77fc7.7d19%40mx.google.com.