4 ms·
Bash — language where even spaces are dangerous. It's frustrating that in shell scripting gap between "looks correct" and "is correct" is enormous. Whitespace
by pornel 15y ago
Bash — language where even spaces are dangerous.
It's frustrating that in shell scripting gap between "looks correct" and "is correct" is enormous.
Whitespace, leading hyphens, paths, globs, shopts, masks, signals, race conditions and POSIX compat problems and quirks — there's always some edge case.
Even `echo` can't output arbitrary values in a portable fashion (sometimes accepts `-n`, but doesn't accept `--`).