Skip to content

os.Setenv does not update environment variables seen by C #1569

@gopherbot

Description

@gopherbot

by salviati.gnu:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. Set a variable with os.Setenv
2. Try accessing it with libc's getenv
3.

What is the expected output?
See the new environment variable at C side.

What do you see instead?
That the newly assigned variable is not actually exported.

Which compiler are you using (5g, 6g, 8g, gccgo)?
8g

Which operating system are you using?
Arch Linux

Which revision are you using?  (hg identify)
8g version release.2011-02-24 7583

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions