projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8f15013
)
improves the XBoard handling of the engine command line
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sun, 6 Dec 2009 19:58:34 +0000 (11:58 -0800)
committer
Arun Persaud
<arun@nubati.net>
Sun, 6 Dec 2009 19:58:34 +0000 (11:58 -0800)
it now understands limited forms of quoting, so engine binaries with spaces in their file name can be handled.
xboard.c
patch
|
blob
|
history
diff --git
a/xboard.c
b/xboard.c
index
3f1983d
..
c9546e2
100644
(file)
--- a/
xboard.c
+++ b/
xboard.c
@@
-7572,8
+7572,11
@@
int StartChildProcess(cmdLine, dir, pr)
strcpy(buf, cmdLine);
p = buf;
for (;;) {
+ while(*p == ' ') p++;
argv[i++] = p;
- p = strchr(p, ' ');
+ if(*p == '"' || *p == '\'')
+ p = strchr(++argv[i-1], *p);
+ else p = strchr(p, ' ');
if (p == NULL) break;
*p++ = NULLCHAR;
}