I am using fpc 1.0.10 in both Unix and W32. Need to process an external file with…
Show quoted text 13 lines
The harsh answer:
1 using spaces in unix :-)
2 using 1.0.x, while 1.9.x is so much better.
The explanation:
Seriously, it was a bug, it is fixed. To avoid similar problems, 1.9.2 and later have a function sysutils.executeprocess that avoids it all together by avoiding the parsing stage and passing arguments separately from the executable name.
sysutils.executeproces('/path to/the file/ with a space',['arg1 arg2','arg2 arg3']);The exec[v|e|p] functions are renamed to fpexec() and also have this.
