Skip to content

add a set_environment_variable procedure to stdlib_system #1187

@jalvesz

Description

@jalvesz

Motivation

While iso_fortran_env provides get_environment_variable to query existing env variables, there doesn't seem to be a "set" counterpart availble in the Fortran standard or other standard modules.

A (yet to be) set_environment_variable could be added to stdlib by wrapping the C procedures

  • Windows : _putenv_s
  • Unix: setenv

Prior Art

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaProposition of an idea and opening an issue to discuss ittopic: utilitiescontainers, strings, files, OS/environment integration, unit testing, assertions, logging, ...

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions