2 ms·
I don't think I disagree substantially, I just think it was super weird to complain about the use of "function" in an article that was all about using bashisms.
by dllthomas 10y ago
I don't think I disagree substantially, I just think it was super weird to complain about the use of "function" in an article that was all about using bashisms.
Personally, I find a lot of bashisms a nice affordance at the command line, and tend to avoid them in scripts meant to persist or be run outside a UI/bash-specific context. Bash is a great UI, poor programming language (sh isn't any better a programming language, but at least it's better standardized).
- dozzie 10y ago> Personally, I find a lot of bashisms a nice affordance at the command line, and tend to avoid them in scripts meant to persist Oh, my bad: I haven't said this explicitly. Thank you for pointing this aspect out. Though the article is about scripts, so this context was somewhat implied. I don't mind the shell-specific syntax either, if it is for a command at hand. In fact, I quite often use what zsh offers with globbing, and sometimes special redirection. I just hate it being used in scripts.
- dllthomas 10y agoYeah, the article was definitely talking about scripts - I just meant that as an aside, in case anyone but us actually reads these comments :)