20 Feb
2018
20 Feb
'18
6:03 p.m.
On 02/20/2018 12:24 PM, Emil Velikov wrote:
Seems like I wasn't clear enough: The goal is not to appease zsh - but a step closer to POSIX sh friendly.
I've been staring and writing bash (closer to POSIX sh really) scripts for over a decade, haven't seen what makes X cleaner over Y. Yet that's subjective, unlike the original argument - consistency rules ;-)
If you're working for "POSIX sh friendly", why are you mentioning zsh in the first place? As for targeting POSIX sh, if you can do that then sure. I have personal scripts written for sh when it makes sense (and my /bin/sh is symlinked to dash, so I actually use sh). But yeah, consistency rules. -- Eli Schwartz Bug Wrangler and Trusted User