1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:22:07 +02:00
tldr/pages/common/set.md
Managor 320d209c78
*: fix style guide issues part 2 (#15777)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
2025-03-07 13:45:30 +02:00

642 B

set

Toggle shell options or set the values of positional parameters. More information: https://manned.org/set.1posix.

  • Display the names and values of shell variables:

set

  • Export newly initialized variables to child processes:

set -a

  • Write formatted messages to stderr when jobs finish:

set -b

  • Write and edit text in the command-line with vi-like keybindings (e.g. yy):

set -o {{vi}}

  • Return to default mode:

set -o {{emacs}}

  • List all modes:

set -o

  • Exit the shell when (some) command fails:

set -e

  • Reset all shell parameters and assign new ones:

set -- {{argument1 argument2 ...}}