-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Implement remaining builtins #146
Comments
Example: We found that /~https://github.com/dylanaraps/pure-bash-bible/blob/master/test.sh https://oilshell.zulipchat.com/#narrow/stream/121540-oil-discuss/topic/Tests |
I would like to see
bash:
|
Found this in |
The |
OK great. I implemented The way I would tackle this is to copy your function into a case here: /~https://github.com/oilshell/oil/blob/master/spec/builtins2.test.sh Notes about spec tests: /~https://github.com/oilshell/oil/wiki/Spec-Tests Then run something like:
And make sure the test is failing. Then this change may give a clue (although I'm not entirely sure) |
I just called one after the other. |
|
|
It looks like
|
Yes that file is generated from osh/runtime.asdl. I wrote a few blog posts about ASDL, this one is an intro: http://www.oilshell.org/blog/2016/12/11.html http://www.oilshell.org/blog/tags.html?tag=ASDL#ASDL Why do you need to find the name |
It's not terribly important, I just thought it would be nice to be consistent with bash. If it's a pain, printing |
I'd like to implement |
Hm good call, I honestly have never used I always wanted some sort of interactive chooser ... but that's a different story. Anyway I think you could just start it with What I mainly care about is testing. As long as code is tested, it's easy to refactor and minimize. Following |
Just mentioning that POSIX specifies |
Yes I think there are Smoosh POSIX test suite covering that: https://www.oilshell.org/release/0.8.pre2/test/spec.wwz/smoosh.html Although my priority now is to increase the list of "real programs" run: /~https://github.com/oilshell/oil/wiki/Shell-Programs-That-Run-Under-OSH i.e. those are more important than features motivated only by POSIX. When people use Oil more, hopefully there will be some community effort to fix this long tail of issues. As I learned, it's a very long tail! Of course I take patches to fix any POSIX compliance issues! |
Also, as mentioned here, I will merge spec tests that show differences with existing shells, even if there isn't a patch yet. Specifying the behavior with tests goes a long way. http://www.oilshell.org/blog/2020/03/recap.html#oil-08pre1 /~https://github.com/oilshell/oil/wiki/Spec-Tests how to run spec tests: /~https://github.com/oilshell/oil/wiki/Contributing And I do |
|
Closing this since it's too general now; there are more specific bugs |
This is a catch-all issue for people who are looking for small tasks.
There are various builtin commands that are unimplemented here, usually with a red X. (note: Oil language stuff is mostly not ready to tackle; contact me if you're not sure what that means.)
http://www.oilshell.org/release/0.6.pre16/doc/osh-quick-ref.html
It's best if you have a bit of experience using the builtin! I don't necessarily want to copy all of bash's builtins -- just the ones people use.
http://www.oilshell.org/release/0.5.alpha3/doc/osh-quick-ref.htmlThe text was updated successfully, but these errors were encountered: