News for hackers. Stuff that matters.
Re:Something about functions in Bash (2017) by AceJohnny2 on Thursday July 05, 2018 @10:00PM (#17468374)
> But I dream about how the world would be if Bash were actually a good scripting language. It compares favorably to csh, and I fear that's about the best you can say for it.

I finally started appreciating Perl after having to write some nontrivial Bash scripts.

(My hierarchy is: default to Bash when my task is mostly running commands. If there's a bit of text-processing or regex required, Perl. If I need any hierarchical datastructures, Python)

Re:Something about functions in Bash (2017) by sethrin on Thursday July 05, 2018 @10:30PM (#17468445)
I think that the simple expression of this might be that Bash is a command language, not a scripting language.
Re:Something about functions in Bash (2017) by ryl00 on Friday July 06, 2018 @02:15AM (#17469332)
What's difficult about hierarchial data structures in Perl?
Re:Something about functions in Bash (2017) by vgy7ujm on Friday July 06, 2018 @05:28AM (#17470061)
Agreed, it's rather one of Perl's strengths.
Re:Something about functions in Bash (2017) by AceJohnny2 on Friday July 06, 2018 @03:30PM (#17474406)
The need for references.
Re:Something about functions in Bash (2017) by 3rdAccount on Thursday July 05, 2018 @10:52PM (#17468515)
Haha, I came to the same conclusions. Perl can do nested data structures, but it ain't easy. With Python, I did it without knowing it was a thing.
Re:Something about functions in Bash (2017) by nerdponx on Thursday July 05, 2018 @10:35PM (#17468463)
You might enjoy Zsh.