Re: Under Linux, "Find in Files" with a '$' character doesn't work
Jingcheng Zhang <[email protected]> Mon, 30 Sep 2024 17:28:16 -0700 (PDT)
| Newsgroups | gmane.editors.scite.general |
|---|---|
| Message-ID | <[email protected]> |
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.