Detecting syntax errors in a Bash script without running itEditCreated 3/26/2007, updated 5/18/2017bash -n script_to_check.sh See also Detecting syntax errors in a Perl script without running it Detecting syntax errors in a PHP script without running it Detecting syntax errors in a Ruby script without running it bashwiki