Special Parameters

- `$#`: count args
- `$n`: nth arg
- `$?`: last exit code
- `$!`: last pid

A special parameter is a parameter denoted by one of the following
special characters.  The value of the parameter is listed next to its
character.

*       Expands to the positional parameters, starting from one.
        When the expansion occurs within a double-quoted string it
        expands to a single field with the value of each parameter
        separated by the first character of the IFS variable, or by
        a ⟨space⟩ if IFS is unset.

@       Expands to the positional parameters, starting from one.
        When the expansion occurs within double-quotes, each
        positional parameter expands as a separate argument.  If
        there are no positional parameters, the expansion of @
        generates zero arguments, even when @ is double-quoted.
        What this basically means, for example, is if $1 is “abc”
        and $2 is “def ghi”, then "$@" expands to the two arguments:

        "abc" "def ghi"

#       Expands to the number of positional parameters.

?       Expands to the exit status of the most recent pipeline.

- (Hyphen.)
        Expands to the current option flags (the single-letter
        option names concatenated into a string) as specified on
        invocation, by the set builtin command, or implicitly by the
        shell.

$       Expands to the process ID of the invoked shell.  A subshell
        retains the same value of $ as its parent.

!       Expands to the process ID of the most recent background
        command executed from the current shell.  For a pipeline,
        the process ID is that of the last command in the pipeline.

0 (Zero.)
        Expands to the name of the shell or shell script.