as part of my app, I run the LaTeX typesetting program via EXEC in Gambas

To cut a long story short, latex likes to be an a specific current
directory, which isn't possible in Gambas: EXEC always runs the in the
directory the interpreter was started in, Currently I use SHELL
instead and do something like "cd the/directory/i/want ; latex
input.tex", but
this is inefficient (I have no other need of a subshell) and generally
feels kludgy.

This patch basically makes EXEC respect the PWD environment variable:
if PWD is set using the WITH keyword option to EXEC then
this is the current directory for the process spawned by EXEC.

Ian

Attachment: gambas-pwd.diff
Description: Binary data

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to