Re: Adding backslash escapes to find.command

scintillaDotOrg <[email protected]> Fri, 9 May 2025 16:25:39 -0700 (PDT)
Newsgroups gmane.editors.scite.general
Message-ID <[email protected]>
------=_Part_117526_1131317535.1746833139939
Content-Type: multipart/alternative; 
	boundary="----=_Part_117527_1812491212.1746833139939"

------=_Part_117527_1812491212.1746833139939
Content-Type: text/plain; charset="UTF-8"

[email protected]:

I have search-across-files done with this:

find.command=git -C "$(find.directory)" grep -n "$(find.what)" -- 
"$(find.files)"


There is a  


This works for everything that doesn't include a double quote. Is there a 
way to request that find.what be backslash escaped before incorporating it 
into the command?


While there is a $(escape ...) function, it isn't applied to find.command 
and it isn't well tested.

This is an area that is platform dependent so it helps to reveal your OS.

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 visit https://groups.google.com/d/msgid/scite-interest/06b8411c-44d9-49f6-a3dd-255828ac0f23n%40googlegroups.com.

------=_Part_117527_1812491212.1746833139939
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div><div dir=3D"auto">[email protected]:<br /></div><div dir=3D"auto"><br /=
></div><blockquote style=3D"margin: 0px 0px 0px 0.8ex; border-left: 1px sol=
id rgb(204, 204, 204); padding-left: 1ex;">I have search-across-files done =
with this:<div><br /></div><div>find.command=3Dgit -C "$(find.directory)" g=
rep -n "$(find.what)" -- "$(find.files)"<br /></div></blockquote><div><br /=
></div><div>There is a=C2=A0=C2=A0</div><blockquote style=3D"margin: 0px 0p=
x 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"=
><div></div><div><br /></div><div>This works for everything that doesn't in=
clude a double quote. Is there a way to request that find.what be backslash=
 escaped before incorporating it into the command?</div></blockquote><div><=
br /></div><div>While there is a $(escape ...) function, it isn't applied t=
o find.command and it isn't well tested.</div><div><br /></div><div>This is=
 an area that is platform dependent so it helps to reveal your OS.</div><di=
v><br /></div><div>Neil</div><div><br /></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;scite-interest&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">scit=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
scite-interest/06b8411c-44d9-49f6-a3dd-255828ac0f23n%40googlegroups.com?utm=
_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/scit=
e-interest/06b8411c-44d9-49f6-a3dd-255828ac0f23n%40googlegroups.com</a>.<br=
 />

------=_Part_117527_1812491212.1746833139939--

------=_Part_117526_1131317535.1746833139939--