Re:What I learned from others' shell scripts
by praptak on Wednesday August 14, 2013 @04:58AM
(#6210511)
Agreed. 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.
Re:What I learned from others' shell scripts
by klibertp on Wednesday August 14, 2013 @07:24AM
(#6210878)
Check 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
Re:What I learned from others' shell scripts
by 616c on Wednesday August 14, 2013 @08:25AM
(#6211072)
Does 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.
Re:What I learned from others' shell scripts
by jboynyc on Wednesday August 14, 2013 @08:02PM
(#6215315)
As a Chicken Scheme user you might also appreciate the Hintz Chicken Scheme Shell (Hiss): 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.
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