system command
Fairlight
fairlite at fairlite.com
Mon Oct 31 17:05:37 PST 2005
The honourable and venerable Fairlight spoke thus:
> In the relative spacial/temporal region of
> Mon, Oct 31, 2005 at 03:43:25PM -0500, Dennis Malen achieved the spontaneous
> generation of the following:
> > I would like to place the following string in a system command:
> >
> > echo "\033&oFvar searchnum=55555;CompileFile(\"260268.cs\");\015"
> >
> > When this line is executed on the command line it works perfectly. The
> > following is my processing for "system":
> >
> > Then:le="echo";lg="\"\\033&o";pa="Fvar
> > searchnum="{@rn{";CompileFile(\\\"260268.cs\\\");\\015\""
I found your problem for you. You need the code segment:
CompileFile(\\\\"260268.cs\\\\")
You were previously ending up with a result of: CompileFile(\260268.cs\)
You need an extra backslash on each end. Frankly, I'm not sure why myself.
I would have thought the code you gave is correct with one backslash
escaping each of the two characters, \ and ", but apparently it is
not correct for some reason that's eluding me at the moment.
I did, however, find the code that yields your desired result. More or
less felt my way into the solution, since the problem didn't make sense to
me in the first place. Sometimes fixes are just instinctive, much as I
hate those particular fixes.
Tested on SCO 6.0.0, fP 5.0.14D4.
Ken, John, anyone: why is the original syntax incorrect? It's going to
give me nightmares.
mark->
More information about the Filepro-list
mailing list