[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to change directory of work?
[Thread Prev] | [Thread Next]
- Subject: Re: how to change directory of work?
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Mon, 14 Apr 2025 21:59:48 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 14/04/2025 à 18:49, T Lee Davidson a écrit :
Otherwise you can actually specify the working directory in Exec or Shell by specifying it the "PWD" environment variable.Exec ["pwd"] With ["PWD=/root"] Wait It's an undocumented Gambas feature.Actually, Benoît, it is documented on the SHELL page in the "Environment" section:https://gambaswiki.org/wiki/lang/shell#t3
Sorry, but I don't see that this specific feature has been documented. I mean that if you specify "PWD=XXX" in the process environment, it is detected by the Gambas interpreter, and then the current working directory of the executed process is set to XXX. It's really an hack. This is why I didn't document it. I even don't know why I'm currently talking about that. :-)
-- Benoît Minisini.
Re: how to change directory of work? | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
how to change directory of work? | roberto.premoli@xxxxxxxxxx |
Re: how to change directory of work? | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: how to change directory of work? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: how to change directory of work? | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |