CaffeineAddict
Well-Known Member
I have a lengthy script (780 lines) that is a bash script used to deploy firewall rules on my system.
There are recommendations to get rid of bash scripting and instead write scripts that are POSIX compatible, so I should convert my script to run with
But why should I bother with that recommendation?
I'm Debian user and bash is the default shell on Debian so my script will work on Debian system no matter what and no matter which release of the distro.
Why should I bother rewriting my script to be POSIX compatible?
I find bash scripting constructs to be easier to write and read and more powerful in terms of syntax used than naked
Maybe one day I'll consider making my firewall open source and share it on GitHub, in that case my script may not work on non Debian systems,
but I think this is not going to happen anytime soon because I did that mistake of open sourcing my Windows firewall HERE, I didn't achieve anything other than making my setup world wide known for anyone to exploit provided they are able to access my system somehow, e.g. ISP or government could find holes without reporting them to me.
So if I'll be using the script for my self only in private repo that's guaranteed to work Debian why should I bother and listen to recommendations?
Give me 1 sane reason why should I bother?
There are recommendations to get rid of bash scripting and instead write scripts that are POSIX compatible, so I should convert my script to run with
shBut why should I bother with that recommendation?
I'm Debian user and bash is the default shell on Debian so my script will work on Debian system no matter what and no matter which release of the distro.
Why should I bother rewriting my script to be POSIX compatible?
I find bash scripting constructs to be easier to write and read and more powerful in terms of syntax used than naked
sh script.Maybe one day I'll consider making my firewall open source and share it on GitHub, in that case my script may not work on non Debian systems,
but I think this is not going to happen anytime soon because I did that mistake of open sourcing my Windows firewall HERE, I didn't achieve anything other than making my setup world wide known for anyone to exploit provided they are able to access my system somehow, e.g. ISP or government could find holes without reporting them to me.
So if I'll be using the script for my self only in private repo that's guaranteed to work Debian why should I bother and listen to recommendations?
Give me 1 sane reason why should I bother?

