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

scl-init.sh calls to ps / variable leaks #47

Open
rowlap opened this issue Nov 14, 2022 · 0 comments
Open

scl-init.sh calls to ps / variable leaks #47

rowlap opened this issue Nov 14, 2022 · 0 comments

Comments

@rowlap
Copy link

rowlap commented Nov 14, 2022

As scl-init.sh sets but doesn't clean up the variable "shell", it ends up set in every shell's variable list.

Suggest replacing the shell variable and call to ps with

[ -n "${BASH:-}" ] && export -f scl # export -f works only in bash

which is similar to the approach used by environment-modules.

@rowlap rowlap changed the title scl-init.sh calls to ps / variable leaks variable scl-init.sh calls to ps / variable leaks Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant