How to get the PATH environment variable?

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

How to get the PATH environment variable?

Postby dmacqueen » Wed Sep 23, 2009 11:11 am

I am having brain lock here. I used to know how to do this, but I can't find it in the docs or on the newsgroup.

Thanks in advance.

Donald [|]
dmacqueen
[|]
 
Posts: 27
Joined: Fri Nov 02, 2007 3:40 pm

Re: How to get the PATH environment variable?

Postby tc » Wed Sep 23, 2009 11:36 am

Hello,

Code: Select all
'PATH' abtScanEnv


. . . and the returned string would have to be parsed.

--tc
tc
Moderator
 
Posts: 304
Joined: Tue Oct 17, 2006 7:40 am
Location: Raleigh, NC

Re: How to get the PATH environment variable?

Postby dmacqueen » Wed Sep 23, 2009 11:55 am

Thanks for the quick and accurate reply.
dmacqueen
[|]
 
Posts: 27
Joined: Fri Nov 02, 2007 3:40 pm

Re: How to get the PATH environment variable?

Postby Diane Engles » Fri Oct 16, 2009 11:43 am

On Unix, you can use UNIXEnvironment current which contains a dictionary with the current environment variable names and values.
Instantiations Smalltalk Support
diane@instantiations.com
Diane Engles
Moderator
 
Posts: 66
Joined: Mon Oct 16, 2006 2:40 pm


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest