[Gambas-user] User environment interrogation

T Lee Davidson t.lee.davidson at gmail.com
Fri Feb 8 07:29:24 CET 2019


On 2/8/19 12:12 AM, Bruce wrote:
> (Quicky?) Is there an easy way to get a particular environment setting for the current user.
> IOW I want to get the result of (say)
>    echo $LD_LIBRARY_PATH
> 
> tia
> Bruce

I have to think that I must be missing something, because this should be quite easy.

Public Sub Main()

   Dim sOutput As String

   Shell "echo $LD_LIBRARY_PATH" To sOutput
   Print sOutput

End


___
Lee


More information about the User mailing list