Detecting syntax errors in a Bash script without running itEditCreated 2007-03-26, updated 2017-05-18bash -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