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