[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: T Lee Davidson <t.lee.davidson@xxxxxxxxx>
- Date: Mon, 14 Apr 2025 18:38:37 -0400
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 4/14/25 3:59 PM, Benoît Minisini wrote:
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#t3Sorry, 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. :-)
Lol.Okay, I see. You're talking specifically about the fact, that Gambas will actually detect and respect the value of the PWD environment variable, not being documented. I stand corrected. :-)
-- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
Re: how to change directory of work? | Brian G <brian@xxxxxxxxxxxxxxxx> |
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> |
Re: how to change directory of work? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |