git: 48556dff3d02 - main - src/bin/sh: Fix spelling errors
Warner Losh
imp at FreeBSD.org
Sat Oct 2 16:40:16 UTC 2021
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=48556dff3d028da85b864c6662534e1388a255c8
commit 48556dff3d028da85b864c6662534e1388a255c8
Author: Elyes HAOUAS <ehaouas at noos.fr>
AuthorDate: 2021-10-02 16:33:51 +0000
Commit: Warner Losh <imp at FreeBSD.org>
CommitDate: 2021-10-02 16:39:24 +0000
src/bin/sh: Fix spelling errors
Pull Request: https://github.com/freebsd/freebsd-src/pull/544
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
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 bee2a4fe703b..a6b407907e20 100644
--- a/bin/sh/error.c
+++ b/bin/sh/error.c
@@ -74,7 +74,7 @@ static void verrorwithstatus(int, const char *, va_list) __printf0like(2, 0) __d
* 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 b95689bce006..58cfc522bb14 100644
--- a/bin/sh/eval.c
+++ b/bin/sh/eval.c
@@ -900,7 +900,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
More information about the dev-commits-src-all
mailing list