Sanjoy Mahajan wrote:
How does Windows quoting work? Well, the whole story isn't needed, but only how would this ruby line
`kpsewhich --expand-var '$TEXMFLOCAL'`
differ on Windows relative to Unix?
the problem is that one never knows when the shell does things and when the program does ... so in order to be really sure, we need taco to look into the kpse source to see if ' is handled there (here they are retained)
And the $@ -> "$@" change can be done in the Unix stubs only, so the change won't affect Windows (which uses .bat files and a different syntax).
so in texmfstart: f.write("#{program} #{callname} \"$@\"\012")
The other part of the patch was changing system() to be used within an if instead of a rescue block, and I got the return information about system() from the Programming Ruby manual online. It didn't say anything about it applying only to Unix, so that change should be safe too.
will look Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------