Getting System Variables values
Alexandre Bergel
bergel at iam.unibe.ch
Tue Dec 23 08:48:37 UTC 2003
Great! Thanks!
Alexandre
On Mon, Dec 22, 2003 at 10:00:49AM -0500, David T. Lewis wrote:
> 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
>
> Dave
>
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
More information about the Squeak-dev
mailing list
|