Overview of the Bash set command
set command is a core Bash built-in used for three primary purposes: controlling shell behavior options (e.g., error handling, debugging), overriding positional parameters ($1, $2, etc.), and inspecting the current shell state. Unlike shopt, which handles Bash-specific extensions like globbing and completion, set follows POSIX standards and is available across all POSIX shells.