Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<ul> <li><code>$1</code>, <code>$2</code>, <code>$3</code>, ... are the <a href="https://www.gnu.org/software/bash/manual/html_node/Positional-Parameters.html" rel="noreferrer">positional parameters</a>.</li> <li><code>"$@"</code> is an array-like construct of all positional parameters, <code>{$1, $2, $3 ...}</code>.</li> <li><code>"$*"</code> is the IFS expansion of all positional parameters, <code>$1 $2 $3 ...</code>.</li> <li><code>$#</code> is the number of positional parameters.</li> <li><code>$-</code> current options set for the shell.</li> <li><code>$$</code> pid of the current shell (not subshell).</li> <li><code>$_</code> most recent parameter (or the abs path of the command to start the current shell immediately after startup).</li> <li><code>$IFS</code> is the (input) field separator.</li> <li><code>$?</code> is the most recent foreground pipeline exit status.</li> <li><code>$!</code> is the PID of the most recent background command.</li> <li><code>$0</code> is the name of the shell or shell script.</li> </ul> <p>Most of the above can be found under <a href="https://www.gnu.org/software/bash/manual/html_node/Special-Parameters.html" rel="noreferrer">Special Parameters</a> in the Bash Reference Manual. There are all the <a href="https://www.gnu.org/software/bash/manual/html_node/Shell-Variables.html" rel="noreferrer">environment variables set by the shell</a>.</p> <p>For a comprehensive index, please see the <a href="https://www.gnu.org/software/bash/manual/html_node/Variable-Index.html" rel="noreferrer">Reference Manual Variable Index</a>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload