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 find / xargs in Python #85

Open
andychu opened this Issue Mar 1, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@andychu
Contributor

andychu commented Mar 1, 2018

I'm marking this "help wanted" -- it could be a fun task for someone who's interested in contributing to Oil, but would rather write new code rather than wade into the existing code.

I haven't blogged about this, but find should be folded into the shell. It is almost its own shell -- it starts processes (-exec), has a recursive boolean predicate language, and has its own -printf, globs, and regexes! Some detail here:

https://github.com/oilshell/oil/wiki/Unix-Tools

Lots of complex find expressions here:

https://github.com/oilshell/oil/blob/master/test/wild.sh

A couple old comments on the relationship between find and awk. You can think of both as predicate/action languages:

https://lobste.rs/s/jfarwh/find_is_beautiful_tool#c_rkmlpz

https://lobste.rs/s/kkre7i/find_1_revisited_2002#c_yyfqsk

To be consistent with the rest of the project I suppose it should be implemented in Python. I got the OPy compiler running on all of Oil recently, so hopefully that will speed things up and eventually break the dependence on the CPython interpreter.

@andychu andychu added the help wanted label Mar 1, 2018

@andychu

This comment has been minimized.

Show comment
Hide comment
@andychu
Contributor

andychu commented May 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment