4 ms·
I get what you mean, but there are reasons for shell scripts to stay shell scripts, and not move to Python. One such project [0] is patching Android to allow f
by 616c 13y ago
I get what you mean, but there are reasons for shell scripts to stay shell scripts, and not move to Python. One such project [0] is patching Android to allow for a privacy framework. What would Python offer me for diffing and patching that cleanly written shell scripts would not?
Shell is still good for one thing: piping commands together. You can do that in Python, but I think even complicated output coloring and debugging scripts should stick to shell when the focus is piping utilities in and out of each other. Python can do that, but it is not its sweet spot, in my opinion. I am sure others disagree.
Different tools for different jobs, blah blah.
[0] https://github.com/mateor/auto-patcher https://github.com/mateor/auto-patcher
- praptak 13y agoAgreed. Piping and a few of the other syntax niceties ('&&' for conditionally chaining processes is my favorite) are a hard match for even the best process-management library you might have in a general purpose language. Maybe a Lisp DSL could match that, I don't know.
- klibertp 13y agoCheck it out and say for yourself - I didn't try it yet, but as a Lisp fan I certainly will: http://www.scsh.net/docu/docu.html http://www.scsh.net/docu/html/man-Z-H-3.html#node_chap_2 I especially love the acknowledgements section :) http://www.scsh.net/docu/html/man.html
- 616c 13y agoDoes it still work well? I am very interested in this. I really like Chicken Scheme because it compiles to portable C, and I was wondering why there has not yet been a Scheme shell this morning. Guess I was naive to think there was not without a proper Google-fu session. UPDATE: I take that back, it appears some still works on it. That page just seems outdated, by a while now. https://github.com/scheme/scsh/commits/master https://github.com/scheme/scsh/commits/master
- jboynyc 13y agoAs a Chicken Scheme user you might also appreciate the Hintz Chicken Scheme Shell (Hiss): http://thintz.com/chicken-scheme-shell http://thintz.com/chicken-scheme-shell Disclaimer: I haven't used it and the author says it is "still pretty new." However, it seems to be under active development still. At least there was a commit to the repository within the last year.
- 616c 13y agoVery cool. I will check it out. Have an upvote!