-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
EXPERIMENTAL: replace bash with oil #105233
Conversation
http://www.oilshell.org/ is supposed to be compatible with Bash. Let's find out if it's true!
|
It looks like oil doesn't support all of the bash startup flags. |
|
|
$ nix-build -A perl
this derivation will be built:
/nix/store/02rda66hvdjar8x6rkqhf3g3sy789v00-perl-5.32.0.drv
warning: unknown setting 'extra-sandbox-paths'
building '/nix/store/02rda66hvdjar8x6rkqhf3g3sy789v00-perl-5.32.0.drv'...
type: 'preHook' not found
type: 'addInputsHook' not found
local -ri hostOffset="$2"
^~~
/nix/store/pbx08z51536fi4fp09k8rbqqj9j2d1zr-stdenv-linux/setup:356: 'local' doesn't accept flag -i
local -ri hostOffset="$2"
^~~~~
/nix/store/pbx08z51536fi4fp09k8rbqqj9j2d1zr-stdenv-linux/setup:356: fatal: Exiting with status 2 (command in PID 1)
source $stdenv/setup
^~~~~~
/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh:1: fatal: Exiting with status 2 (command in PID 1)
type: 'failureHook' not found
error: --- Error ------------------------------------------------------------------- nix-build
builder for '/nix/store/02rda66hvdjar8x6rkqhf3g3sy789v00-perl-5.32.0.drv' failed with exit code 2; last 10 log lines:
local -ri hostOffset="$2"
^~~
/nix/store/pbx08z51536fi4fp09k8rbqqj9j2d1zr-stdenv-linux/setup:356: 'local' doesn't accept flag -i
local -ri hostOffset="$2"
^~~~~
/nix/store/pbx08z51536fi4fp09k8rbqqj9j2d1zr-stdenv-linux/setup:356: fatal: Exiting with status 2 (command in PID 1)
source $stdenv/setup
^~~~~~
/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh:1: fatal: Exiting with status 2 (command in PID 1)
type: 'failureHook' not found |
currently stuck on the |
I think osh isn't intended to be interactive, so I guess that is a thing. |
Interested in this! |
Go for it. It might be worth submitting the |
Ok, I was a little too optimistic. There is quite some work to do the beam at the moment. I have to put this in the back burner for now. |
Did you gather some additional notes in the process? Maybe that's something that can be tackled collectively if we all add a little stone to the road. |
unfortunately not, I went down a rabbit hole of researching oil, the new language andrew wants to make. |
I'm giving this another go.
|
just opened a PR here #127736 |
I marked this as stale due to inactivity. → More info |
Still working on that, albeit, slowly. |
Is this still being worked on? Is it replaced by #131676 ? |
@adamcstephens thanks for coming around! |
@happysalada makes sense. Should we close this and the other attempts at that switch then? |
Depends on what the intent is, if the intent is to try to reduce the number of PRs open, then sure. |
closing as I'm not going to keep working on this, it was a fun experiment |
http://www.oilshell.org/ is supposed to be compatible with Bash. Let's
find out if it's true!
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)