Thanks to visit codestin.com
Credit goes to github.com

Skip to content

puts command at the start of evaluation changes #432

@xdelaruelle

Description

@xdelaruelle

Currently when using puts command to the stdout channel in a modulefile, the passed string is added at the end of the command list to apply to the current shell session.

It seems interesting to be able to put commands also at the start of the command list to apply, for instance to deactivate a setup prior unsetting the PATH to reach the tool that has enabled this setup.

Using a channel named for instance prestdout may help to know the content should be prepended instead of appended:

puts prestdout {mytool deactivate}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions