Getting System Variables values
David T. Lewis
lewis at mail.msen.com
Mon Dec 22 15:00:49 UTC 2003
On Mon, Dec 22, 2003 at 11:11:27AM +0100, Alexandre Bergel wrote:
> Is there a way to fetch values from system variables such as $PATH, $PWD, $SHELL within Squeak?
If you are using Unix/Linux or Windows, you can load OSProcess from Squeak Map.
Then you can evaluate:
OSProcess thisOSProcess environmentAt: #PATH ==> the current $PATH
OSProcess thisOSProcess environment ==> a Dictionary of the environment variables
More information about the Squeak-dev