Skip to content

bring-your-own-bash based bootstrapping#33

Draft
r2r-dev wants to merge 1 commit intoegen:masterfrom
r2r-dev:portable-shell
Draft

bring-your-own-bash based bootstrapping#33
r2r-dev wants to merge 1 commit intoegen:masterfrom
r2r-dev:portable-shell

Conversation

@r2r-dev
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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.

3 participants