3 ms·
> "it's not dumb if it works" It's not dumb if you know what you are doing. I and others have pointed out how to properly handle binary data in shell scripts.
by mike_d 3y ago
> "it's not dumb if it works"
It's not dumb if you know what you are doing. I and others have pointed out how to properly handle binary data in shell scripts.
This might be a good start if you'd like to learn more: https://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html https://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
- cduzz 3y agoI'm simply pointing out that a "pure bash" or other shell program is folly once you get past a trivial level of complexity. That How-to doesn't mention that shell eats nulls. If you're using shell as glue, that doesn't matter, but if you're using shell to process (not pass to another program) raw tcp connections, you'll need to manage binary data, which is full of nulls. Perhaps you're not even aware of these issues? Anyhow, go on about your life grand troll, you're the winner.