From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/bash/special-builtins.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 devdocs/bash/special-builtins.html (limited to 'devdocs/bash/special-builtins.html') diff --git a/devdocs/bash/special-builtins.html b/devdocs/bash/special-builtins.html new file mode 100644 index 00000000..4096a6dc --- /dev/null +++ b/devdocs/bash/special-builtins.html @@ -0,0 +1,13 @@ +

Special Builtins

For historical reasons, the POSIX standard has classified several builtin commands as special. When Bash is executing in POSIX mode, the special builtins differ from other builtin commands in three respects:

  1. Special builtins are found before shell functions during command lookup.
  2. +
  3. If a special builtin returns an error status, a non-interactive shell exits.
  4. +
  5. Assignment statements preceding the command stay in effect in the shell environment after the command completes.
  6. +

When Bash is not executing in POSIX mode, these builtins behave no differently than the rest of the Bash builtin commands. The Bash POSIX mode is described in Bash POSIX Mode.

These are the POSIX special builtins:

+
break : . continue eval exec exit export readonly return set
+shift trap unset
+
+
+

+ Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
Licensed under the GNU Free Documentation License.
+ https://www.gnu.org/software/bash/manual/html_node/Special-Builtins.html +

+
-- cgit v1.2.3