Skip to content

Ability to set umask #649

Open
Open

Description

@smprather

Is your feature request related to a problem?

Not necessarily a request, but a possible feature discussion.

Describe the solution you'd like

Hi Xavier--
I have a need to set umask in a module I'm using to set up a project environment.

Describe alternatives you've considered

Right now, I'm just using puts "umask 0077; " to have it eval'd with the rest of the shell eval output. And that's not a bad solution. It's just kind of a hack, and I imagine most casulal module user's wouldn't understand it when reading it. It's shell independent. And even though I haven't tried, I'm sure I get module unload to work right as well.

(BTW, On the high-module-count caching improvements: "I'll be back". The guy pushing me the most on it left the company. But I still want to finish it.)

Activity

  1. xdelaruelle commented on Jul 21, 2026

    @xdelaruelle
    Collaborator

    Hi Myles.

    Adding a umask modulefile command would indeed help people managing this volatile aspect of a shell session.

    Advantages to have a modulefile command rather outputing shell code:

    • no need to worry with the different shells used
    • restore the previous umask when unloading the modulefile

    We should be able to include this new feature in the v5.8 roadmap

  2. added this to the 5.8.0 milestone on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions