Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

puts command at the start of evaluation changes #432

Closed
xdelaruelle opened this issue Jan 5, 2022 · 0 comments
Closed

puts command at the start of evaluation changes #432

xdelaruelle opened this issue Jan 5, 2022 · 0 comments
Milestone

Comments

@xdelaruelle
Copy link
Member

xdelaruelle commented Jan 5, 2022

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}

@xdelaruelle xdelaruelle added this to the 5.1 milestone Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant