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

bring-your-own-bash based bootstrapping #33

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

r2r-dev
Copy link
Collaborator

@r2r-dev r2r-dev commented Mar 21, 2022

This change may serve as a solution to compatibility issues between different shells/OS'es, such as: #8 #28 #29

The approach is quite simple: when launched, script first downloads statically linked bash + toybox, and re-load itself using downloaded interpreter and PATH reduced only to what's provided by toybox. Original binary search path is restored just before entering nix-shell.

Copy link
Collaborator

@borancar borancar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pro this approach initially, but want to see us migrating to a universal binary based on Cosmopolitan lib. My reasoning is we can't beat the flexibility and universality of a compiled program, especially if we layer a powerful language atop.

@finn-qarik finn-qarik force-pushed the master branch 4 times, most recently from b7588d4 to aec36d2 Compare April 19, 2024 10:54
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

Successfully merging this pull request may close these issues.

2 participants