git: d1230690019a - stable/12 - src/bin/sh: Fix spelling errors

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 19 Nov 2021 05:00:45 UTC
The branch stable/12 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=d1230690019a36c3d545135721b955e2b62dcf51

commit d1230690019a36c3d545135721b955e2b62dcf51
Author:     Elyes HAOUAS <ehaouas@noos.fr>
AuthorDate: 2021-11-19 04:59:41 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-11-19 04:59:41 +0000

    src/bin/sh: Fix spelling errors
    
    Pull Request: https://github.com/freebsd/freebsd-src/pull/544
    Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
    (cherry picked from commit 48556dff3d028da85b864c6662534e1388a255c8)
---
 bin/sh/error.c   | 2 +-
 bin/sh/eval.c    | 2 +-
 bin/sh/nodetypes | 2 +-
 bin/sh/shell.h   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/sh/error.c b/bin/sh/error.c
index 784d2a9eb91a..1dee56fcbfa7 100644
--- a/bin/sh/error.c
+++ b/bin/sh/error.c
@@ -74,7 +74,7 @@ static void exverror(int, const char *, va_list) __printf0like(2, 0) __dead2;
  * just do a longjmp to the exception handler.  The type of exception is
  * stored in the global variable "exception".
  *
- * Interrupts are disabled; they should be reenabled when the exception is
+ * Interrupts are disabled; they should be re-enabled when the exception is
  * caught.
  */
 
diff --git a/bin/sh/eval.c b/bin/sh/eval.c
index 6adc3ac6426d..ab8d331393b4 100644
--- a/bin/sh/eval.c
+++ b/bin/sh/eval.c
@@ -903,7 +903,7 @@ evalcommand(union node *cmd, int flags, struct backcmd *backcmd)
 				 * the hash table isn't filled with items
 				 * from the temporary setting.
 				 *
-				 * It would be better to forbit using and
+				 * It would be better to forbid using and
 				 * updating the table while this command
 				 * runs, by the command finding mechanism
 				 * is heavily integrated with hash handling,
diff --git a/bin/sh/nodetypes b/bin/sh/nodetypes
index 496ffba05924..0d0d657d67e8 100644
--- a/bin/sh/nodetypes
+++ b/bin/sh/nodetypes
@@ -64,7 +64,7 @@ NPIPE npipe			# a pipeline
 	backgnd	  int			# set to run pipeline in background
 	cmdlist	  nodelist		# the commands in the pipeline
 
-NREDIR nredir			# redirection (of a compex command)
+NREDIR nredir			# redirection (of a complex command)
 	type	  int
 	n	  nodeptr		# the command
 	redirect  nodeptr		# list of file redirections
diff --git a/bin/sh/shell.h b/bin/sh/shell.h
index c06e737e658f..536efe6ce228 100644
--- a/bin/sh/shell.h
+++ b/bin/sh/shell.h
@@ -55,7 +55,7 @@
 /* #define DEBUG 1 */
 
 /*
- * Type of used arithmetics. SUSv3 requires us to have at least signed long.
+ * Type of used arithmetic. SUSv3 requires us to have at least signed long.
  */
 typedef intmax_t arith_t;
 #define	ARITH_FORMAT_STR  "%" PRIdMAX