-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Python bind
for osh
#2092
base: master
Are you sure you want to change the base?
Python bind
for osh
#2092
Conversation
148e75f
to
dfdb011
Compare
f2cf1c4
to
f8ff91a
Compare
f8ff91a
to
179d375
Compare
179d375
to
c26b7d5
Compare
I ran the spec tests locally and got this -
Is that what is expected to work? The code looks reasonable, and this seems like good progress! If so, I can help fix the C++ issues |
Yes, this is what I expect. The failing tests don't have code implemented for them yet. |
I pushed a couple minor commits to pass type checking and translation So make sure to PULL before editing any code It looks like we can get past the rest of the C++ build errors without much work too -- I will look at that This looks VERY promising, thank you! |
OK I pushed some stubs for C++ -- wasn't that bad, although there was one mycpp workaround necessary Let's see what CI results looks like! |
Oh weird there are some http://op.oilshell.org/uuu/github-jobs/8226/interactive.wwz/_tmp/soil/logs/py-all-and-ninja.txt Maybe this is due to older GNU readline versions? Maybe bash added a new flag recently that depends on a new version or something? |
Hmm, I haven't seen that error either. The rl_function_of_keyseq_len fn exists in my bash. I see it in lib/readline/readline.h and lib/readline/bind.c. Looks like that particular fn was added six years ago for bash 5.0. I'm guessing python's readline wrapper uses an older version as its basis? Bash 4.4 used rl_bind_keyseq to do removal by passing a null ptr for the fn to bind to. I'll look into what precise version python's readline was based off of. Using that as a basis is probably easier; bash/readline is old, but it's still changing, and I don't think I want to bring in the latest readline just for this. (Honestly, I'm not sure you want to use readline over a more modern lib, even without the license issue.) |
No description provided.