Skip to content
The Bash Insectarium

/static/insetario/en/etiqueta/fantasmas/

Menu

This filter is a page

Drawer: Ghost variables

Parameters nobody declares and every shell carries.

7 insects on this page

  1. BSH-019 $_ The previous command's last argument, kept in an underscore. Ghost variables uncommon
  2. BSH-020 $? The last command's exit status: zero is good silence. Ghost variables common
  3. BSH-021 $$ The shell's own process number — the session's registration. Ghost variables common
  4. BSH-022 $! The PID of the last process sent to the background. Ghost variables uncommon
  5. BSH-023 $0 The name the script was called by — itself, on the label. Ghost variables common
  6. BSH-024 $- The shell's lit options, one letter per flag. Ghost variables forgotten
  7. BSH-025 $PIPESTATUS The exit status of every link in the pipe, not just the last. Ghost variables forgotten