3 ms·
Pass-by-global is awful. Make smaller functions that return (echo) a single string. Your bash is untestable, but that's just because of your chosen abstraction
by kohtatsu 7y ago
Pass-by-global is awful. Make smaller functions that return (echo) a single string.
Your bash is untestable, but that's just because of your chosen abstractions.
Bash is just a proper script language with a weird string and implicit IO system.
Disclaimer: I stick to POSIX sh but same difference.