Forrest logo
back to context overview

set

List of commands for set:

  • set:tldr:140d5 set: Prompt the user for a value for the specified variable.
    $ set /p ${name}=${prompt_string}
    try on your machine
    explain this command
  • set:tldr:2b878 set: List environment variables starting with the specified string.
    $ set ${name}
    try on your machine
    explain this command
  • set:tldr:41c71 set: Set an environment variable to a specific value.
    $ set ${name}=${value}
    try on your machine
    explain this command
  • set:tldr:5e4ef set: Set the shell to exit as soon as the first error is encountered (mostly used in scripts).
    $ set -e
    try on your machine
    explain this command
  • set:tldr:68747 set: Notify of job termination immediately.
    $ set -b
    try on your machine
    explain this command
  • set:tldr:bb7a3 set: Set various options, e.g. enable `vi` style line editing.
    $ set -o ${vi}
    try on your machine
    explain this command
  • set:tldr:cdaee set: Display the names and values of shell variables.
    $ set
    try on your machine
    explain this command
  • set:tldr:f2e2a set: Mark variables that are modified or created for export.
    $ set -a
    try on your machine
    explain this command
back to context overview