Skip to content

Feature request: richer environment-variable handling #332

@dstndstn

Description

@dstndstn

Hi,

  1. Is there a way to CLEAR an environment variable? Eg, I want to do the equivalent of unset PYTHONPATH -- PYTHONPATH is set in my shell environment and I don't want that variable to be set inside my shifter environment.
  2. It would be nice to be able to clear everything except for a specified list of environment variables -- for example, I want to do --clearenv except I need to pass in Slurm variables to actually allow a shifter-in-srun job to work. (I guess I could do this with a careful shell script, creating a separate --env-file for each srun task)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions