Search notes:

Bash built-in: set

With set, values of internal script variables/options can be modified and positional parameters can be set.
Apparently, the current settings can also be queried through the environment variable $- where set options are indicated by a single letter.

Short and long version

Most options come with two equivalent forms: one is set -o option-name, the other is set -X, where X is a one letter abbreviation for option-name.
set -o option-name
set -X

Disabling options

Options are, unintuitively, disabled by using a plus (+) instead of a minus (-) sign:
set +o option-name
set +X

Setting positional parameters

set can also be used to set the positional parameters $1$n:
#
#   Set positional parameters
#
set one two three

echo \$1=$1
echo \$2=$2
echo \$3=$3
Github repository about-Bash, path: /built-in/set/positional-parameters

Options

set -e immediately exits upon encountering an error.
set -h remember location of executables when they were started.
set -v (set -o verbose): echo all commands before executing them.
set -x / set -o xtrace to trace (debug) commands while they're executed.

See also

Bash built ins
Bash - shopt

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/sh...', 1758210037, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/shell/bash/built-in/set/index(87): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78