-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
interp: support all Bourne shell (POSIX) builtins #97
Comments
Initial version, started off from a fairly modified copy of syntax's code that parses [[ expressions. From that, we had to remove handling of some tokens like (, &&, and =~. Also had to rework the logic a bit to merge p.tok into p.val, since we only have strings here. Need to add more tests for parse errors. Updates #97.
In the past week:
|
Only |
Not sure why it's not on the linked page, but there's also https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html |
@masaeedu not listed because The interpreter does support some bash builtins, but there is no ticket for supporting all of them. I might open one once this one is closed, but I don't expect I'll have the patience to implement all of those myself. |
I'm sorry if this is already answered, but I've spent a few minutes digging through issues, discussions, and the Go package and can't find a list of what utilities are matched. Specifically I had issues in the past with |
Note that mkdir is a coreutil, not a shell builtin:
The issue tracking native support for coreutils is #93. It somewhat stalled as it's a huge amount of work, so instead I wanted to leverage an existing coreutils implementation. If someone wants to take a look at reusing u-root as explained in #93 (comment), I would be happy to review a PR :) |
As described in https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html. We have most of them already.
The text was updated successfully, but these errors were encountered: