[Gambas-user] How to set a working directory using EXEC

Benoît Minisini gambas at ...1...
Sun Jun 14 16:32:59 CEST 2015


Le 14/06/2015 00:55, Antonio Sánchez a écrit :
> Hi, I have read this thread:
> http://gambas.8142.n7.nabble.com/patch-for-setting-directory-on-EXEC-td41205.html
>
> ...but at the end how we can set the working directory when we use EXEC?
>
>
> Thanks.

This is written in the thread there:

 > if PWD is set using the WITH keyword option to EXEC then
 > this is the current directory for the process spawned by EXEC.

So you write something like that:

EXEC [ "myprog", "-option", "arg" ] WITH [ "PWD=/working/directory" ]

It's a syntax hack ; maybe it deserves its own syntax.

Regards,

-- 
Benoît Minisini




More information about the User mailing list