3 ms·
What to use instead of bash though? I hate having to worry about all the little quirks in bash but most other languages make simple things like input redirectio
by ufo 13y ago
What to use instead of bash though? I hate having to worry about all the little quirks in bash but most other languages make simple things like input redirection and piping commands awfully verbose.
- bakul 13y agorc is pretty minimal and consistent (available in plan9ports).
- chongli 13y agoHaskell! Seriously, people do shell scripting in Haskell. There's actually a pretty nice library designed for it called Shelly: https://github.com/yesodweb/Shelly.hs/blob/master/README.md#usage https://github.com/yesodweb/Shelly.hs/blob/master/README.md#...
- dllthomas 13y agoShelly is great! Still, there is some minimum complexity before something is better done in it, and porting a small bash script that has grown from a tiny bash script is pretty trivial.
- jevinskie 13y agoCheck out IPC::Run for Perl. [0] Perl was already pretty nice with it's backticks but IPC::Run takes it another step further and allows you to do all sorts of redirection/piping/etc with the single 'run' subroutine. If you want an 'expect' sort of use, you can do that too. [0]: http://search.cpan.org/~toddr/IPC-Run-0.92/lib/IPC/Run.pm http://search.cpan.org/~toddr/IPC-Run-0.92/lib/IPC/Run.pm
- Sir_Cmpwn 13y agoI use fish. http://fishshell.com/ http://fishshell.com/ Loop: for f in *.txt cat $f end
- ufo 13y agoReally liking it so far. Thanks for the suggestion.