I go on any system, fucking perl. I look at scripts written by IT, not shell scripts, fucking perl. I try openBSD, fucking perl. FreeBSD? fucking perl. Default packages on linux even.. no python, no ruby, FUCKING PERL WHAT THE FUCK PERL PERL PERL
I'm pretty sure it's absolutely impossible to write proper input sanitation in bash.
Bash is a Turing-complete programming language. If it is even theoretically possible for a given computation to be performed, then it is theoretically possible to perform it in Bash.