I am developing a generic bash script which could be executed in different distro. I have only a CentOS virtual machine and I would be interested to test my script on a virtual terminal (online or ...
I'd like to be able to test if I have access to the internet. My computer is connected to the residence internet connection. I thought of using ping like this: ping -q -w 1 -c 1 `ip r | grep default ...
Is there some option I can give to just check the syntax of a [bash] shell script to check the syntax of it, but not actually execute anything nor cause any potential damage?