1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 04:02:09 +02:00
tldr/pages/common/set.md
spageektti 5a1c363361
*: change command line to command-line (#12996)
Change `command line` to `command-line`
2024-06-16 22:46:42 +02:00

477 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}}

  • Exit the shell when (some) commands fail:

set -e