[squeak-dev] User config directories (was: Merge Request: autoEncloseBeforeSpace.cs)

Jakob Reschke jakres+squeak at gmail.com
Wed Jan 5 19:37:43 UTC 2022

Am Mo., 3. Jan. 2022 um 18:24 Uhr schrieb Eliot Miranda
<eliot.miranda at gmail.com>:
> There is a getenv primitive (but see below on a better solution).  So you can implement this anywhere and use self getenv: 'HOME'
> getenv: aByteStringOrByteArray
>     <primitive: 'primitiveGetenv' module: '' error: ec>
>     ec == #'bad argument' ifTrue:
>         [aByteStringOrByteArray isString ifFalse:
>             [^self getenv: aByteStringOrByteArray asString]].
>     self primitiveFail

Wow, great! Is there a particular reason why we do not have a method
for this in the Squeak trunk?

More information about the Squeak-dev mailing list