-
-
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
Run neofetch #679
Comments
Depends on #273 It does use I tried running it (with EDIT: Okay, I remembered how to build it, but there doesn't seem to be any difference Also, regarding the "May also do something interesting with images (?)" in the wiki, yeah, there's image displaying support using backends such as w3m-img, caca, sixel, etc. |
Thanks for testing it -- Can you share the patch that leads to I think it could be an infinite recursion bug perhaps caused by badly executing something in neofetch. A normal shell program shouldn't blow the stack unless it's doing something really weird. |
Actually, I think I remember a function executing multiple times and forgot it until you mentioned that... anyway, stock Neofetch actually already triggers it on my desktop, but it doesn't reach there on my laptop because of #694 EDIT: The recursing function is |
OK I fixed #694 and #273. It does something now, but not the right thing!
|
One issue is that OSH interprets backslashes in quoted What would be the preferred way for getting OSH's version? |
Also, Neofetch uses |
(patched for the mentioned issues and for |
Oh, forgot about the title portion. One issue is that |
Strangely, the error happens on executing Also, I forgot the GPU; it uses |
OSH also doesn't seem to execute EXIT traps on INT, so my cursor keeps disappearing. |
Okay, I finally figured out the assertion error; I was confused because the output in OSH's xtrace escapes backslashes, i.e.: osh$ set -x
osh$ echo '\'
+ echo '\\'
\ Not sure if this is intended. Anyway, I also got confused with some other stuff due to some mistakes, but after I figured that out, I found out that the issue is with backslashes in unquoted variables when globbing is off. For example:
|
Let's discuss this patch here, very interesting! https://github.com/Crestwave/snippets/blob/master/neofetch.patch
|
Based on https://github.com/dylanaraps/neofetch/pull/1442/files it looks like #701 is one of the more significant patches, but if it gets upstreamed, awesome :) Also I'm curious if we can generate coverage to see how many of the 10K lines of neofetch are actually being run. #687 |
It's been merged! :) |
Awesome!! Thanks you for working on this and debugging it -- I know first-hand how hard that can be. This is a big milestone: neofetch seems to be one of https://github.com/oilshell/oil/wiki/The-Biggest-Shell-Programs-in-the-World I think it will also be useful for some parsing benchmarks since it's such a big file :) And execution benchmarks when the C++ translation is ready. Probably time to make a release soon ... If there are any debugging features that would help get more scripts running, feel free to discuss on Zulip or file a new issue. I fixed the xtrace |
Added neofetch here too: https://github.com/oilshell/oil/wiki/Shell-Programs-That-Run-Under-OSH |
Definitely! This is probably the first non-trivial Bash program I've tried that works on OSH. Note that Dylan went ahead and implemented two patches before my PR, though: dylanaraps/neofetch@23c445d The first is a good thing since it was a mistake that OSH caught. As for the second, he's not a fan of dropping |
I think by now more bash programs should work. I had to fork bash-completion to get it to work, but I would categorize it as "very long and complex" like neofetch: https://github.com/oilshell/bash-completion/ I mean there are plenty of bash programs in the 500 line range? Although it does appear that more programs rely on More ideas here: https://github.com/oilshell/oil/labels/should-run-this I will try to improve tracing support as mentioned; I think that will help, as I know it's painful now |
For some reason it doesn't output anything in OSH. Maybe it's using BASH_VERSION or something?
The text was updated successfully, but these errors were encountered: