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

generalize $RANDOM impl to support dynamic vars like SHELLOPTS + BASHOPTS #233

Open
reubeno opened this issue Oct 24, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@reubeno
Copy link
Owner

reubeno commented Oct 24, 2024

I think it's worth looking at generalizing what we already do for $RANDOM -- i.e., the existence of a special variable whose reads are satisfied by custom functions. We could have some way to provide dynamically accurate values of SHELLOPTS, for example, without needing the code managing options to remember to update the variable. As a side benefit, this also allows us to do less work at shell initialization time to compute and format the right strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant