On Tue, 31 Aug 2010 11:17:34 -0400, nickles <>
wrote:
|Thanks Vince,
|
|but (yeah, there is always a "but" ;-) how - from your experience would - I quote the first string I mentioned (obviously vBulletin ate the angle brackets) [batch `<h[1-3]><h[1-3]>.*"File"`<h[1-3]>]<h[1-3]> reliably?
|
|nickles</h[1-3]></h[1-3]></h[1-3]>
Code:
v:\> type echoargs.bat
u:\mycmdline.exe %1
v:\> echoargs.bat `^^k^^<h[1-3]^^>^^<h[1-3]^^>.*"File"^^k`
u:\mycmdline.exe `<h[1-3]><h[1-3]>.*"File"`
To protect the redirection symbols you must either "" them (""s won't
be removed) or escape them.
Above, the outer `` are removed immediately and one level of escaping
is removed as you enter the batch file, so
Code:
%1 is ^k^<h[1-3]^>^<h[1-3]^>.*"File"^k
When the mycmdline command is processed, another level of escaping is
removed, so mycmdline.exe gets
Code:
%1 is `<h[1-3]><h[1-3]>.*"File"`
After many years of using 4NT/TCC, I can't do these things without
experimentation.