4 ms·
Are you aware of sh? http://amoffat.github.io/sh/ http://amoffat.github.io/sh/
by wting 13y ago
Are you aware of sh? http://amoffat.github.io/sh/ http://amoffat.github.io/sh/
- codygman 13y agoAnd the Haskell equivalent for a performance and type safety boost: https://github.com/yesodweb/Shelly.hs https://github.com/yesodweb/Shelly.hs
- kamaal 13y agoIts not about having function to call shell commands. That way I might as well use C or C++ or Java. Its about how such a feature interplays with rest of the language. Frankly speaking in Python it looks like added after a lot after thought and a lot of reluctance. Same with regular expressions.
- _delirium 13y agoYeah, it's not just about shelling out, but about being able to write Perl that works sort of like an awk script, just with more of a real language attached to it. Functions that implicitly work on the current line, lightweight regex syntax, the <FILE> magic, bash-style file tests (-e/-r/-d/-f), etc.