The operators that rewrite a variable into a new value before the shell runs a command.

Shell parameter expansion rewrites values

Parameter expansion derives a value from a shell parameter before a command receives its arguments. It can provide a default, reject missing configuration, or remove part of a string without launching another process. This is expansion during execution, not an instruction to evaluate every variable when the script is first parsed: a function reads the current value when it runs. ...

November 16, 2027 · 4 min · XB Field Notes