[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] How to access environment variables ?

From: Paolo Bonzini
Subject: Re: [Help-smalltalk] How to access environment variables ?
Date: Mon, 28 Mar 2011 15:52:52 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

On 03/28/2011 03:42 PM, Mehul Sanghvi wrote:
      gst>  Smalltalk getenv: 'SHELL'

I didn't think I needed it when I was doing the environ statement.

You didn't need it for "Smalltalk environ" indeed.  But here,

which is different from

      gst>   Smalltalk environ:

the last one needing a '.' to make it a complete statement or an object.

adding a "." would only make a syntax error, because you need an argument after "environ:", just like you had one above "getenv:".

Tip: if you think it's complicated, you aren't understanding it. :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]