Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Fix some documentation typos
- X-seq: zsh-workers 53775
- From: Lawrence Velázquez <larryv@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Fix some documentation typos
- Date: Wed, 11 Jun 2025 22:41:27 -0400
- Archived-at: <https://zsh.org/workers/53775>
- Feedback-id: iaa214773:Fastmail
- List-id: <zsh-workers.zsh.org>
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 103b6d842..336e8a667 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -885,7 +885,7 @@ can also be 0 to suppress all indentation.
The tt(-W) option turns on the option tt(WARN_NESTED_VAR) for the named
function or functions only. The option is turned off at the start of
-nested functions (apart from anonoymous functions) unless the called
+nested functions (apart from anonymous functions) unless the called
function also has the tt(-W) attribute.
The tt(-c) option causes var(oldfn) to be copied to var(newfn). The
@@ -1658,7 +1658,7 @@ cindex(functions, returning from)
item(tt(return) [ var(n) ])(
Causes a shell function or `tt(.)' script to return to
the invoking script with the return status specified by
-an arithmetic expression var(n). Also causes a non-interctive
+an arithmetic expression var(n). Also causes a non-interactive
shell to exit, allowing files containing shell code to be used
both as scripts and as autoloadable shell functions.
For example, the following prints `tt(42)':
diff --git a/Doc/Zsh/compwid.yo b/Doc/Zsh/compwid.yo
index e1960d9e7..a968c6245 100644
--- a/Doc/Zsh/compwid.yo
+++ b/Doc/Zsh/compwid.yo
@@ -967,7 +967,7 @@ The patterns before the `tt(=)' are used to match substrings of the current
word. For each matched substring, the corresponding part of the match pattern
is broadened with the pattern after the `tt(=)', by means of a logical tt(OR).
-Each pattern in a matcher cosists of either
+Each pattern in a matcher consists of either
startitemize()
itemiz(the empty string or)
@@ -1129,7 +1129,7 @@ anchors, below), then var(match-pat) may also be `tt(*)' or `tt(**)'. `tt(*)'
can match any part of a completion that does not contain any substrings
matching var(anchor), whereas a `tt(**)' can match any part of a completion,
period. (Note that this is different from the behavior of `tt(*)' in the
-anchorless forms of `tt(l:)' and `tt(r:)' and and also different from `tt(*)'
+anchorless forms of `tt(l:)' and `tt(r:)' and also different from `tt(*)'
and `tt(**)' in glob expressions.)
startitem()
diff --git a/Doc/Zsh/mod_ksh93.yo b/Doc/Zsh/mod_ksh93.yo
index 7d22064ee..9e995caac 100644
--- a/Doc/Zsh/mod_ksh93.yo
+++ b/Doc/Zsh/mod_ksh93.yo
@@ -132,7 +132,7 @@ em(THIS FEATURE IS NOT YET IMPLEMENTED.)
)
item(tt(.sh.math) <K>)(
This parameter is more accurately considered a namespace. A function
-defintion of the form
+definition of the form
ifzman()
indent(tt(function .sh.math.)var(name)tt( )var(ident)tt( ... { )var(list)tt( }))
diff --git a/Doc/Zsh/mod_private.yo b/Doc/Zsh/mod_private.yo
index 24c099f38..6f8633836 100644
--- a/Doc/Zsh/mod_private.yo
+++ b/Doc/Zsh/mod_private.yo
@@ -96,7 +96,7 @@ may use the private parameter because those have the same calling scope.)
enditemize()
Note that this differs from the static scope defined by compiled languages
-derived from C, in that the a new call to the same function creates a new
+derived from C, in that a new call to the same function creates a new
scope, i.e., the parameter is still associated with the call stack rather
than with the function definition. It differs from ksh `tt(typeset -S)'
because the syntax used to define the function has no bearing on whether
diff --git a/Doc/Zsh/mod_random.yo b/Doc/Zsh/mod_random.yo
index 4f5622e61..d797ca381 100644
--- a/Doc/Zsh/mod_random.yo
+++ b/Doc/Zsh/mod_random.yo
@@ -1,5 +1,5 @@
COMMENT(!MOD!zsh/random
-Some High-quality randomness parameters and functions.
+Some high-quality randomness parameters and functions.
!MOD!)
The tt(zsh/random) module gets random data from the kernel random pool. If no
kernel random pool can be found, the module will not load.
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index aabd80d08..f697f1196 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -2156,7 +2156,7 @@ pindex(NOKSHTYPESET)
cindex(argument splitting, in typeset etc.)
cindex(ksh, argument splitting in typeset)
item(tt(KSH_TYPESET))(
-This option is now obsolete: a better appropximation to the behaviour of
+This option is now obsolete: a better approximation to the behaviour of
other shells is obtained with the reserved word interface to
tt(declare), tt(export), tt(float), tt(integer), tt(local), tt(readonly)
and tt(typeset). Note that the option is only applied when the reserved
@@ -2303,7 +2303,7 @@ for example in expressions such as tt($#-) and tt($#*).
Another difference is that with the option set assignment to an
unset variable in arithmetic context causes the variable to be created
as a scalar rather than a numeric type. So after `tt(unset t; (( t = 3
-)))'. without tt(POSIX_IDENTIFIERS) set tt(t) has integer type, while with
+)))', without tt(POSIX_IDENTIFIERS) set tt(t) has integer type, while with
it set it has scalar type.
When the option is unset and multibyte character support is enabled (i.e. it
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index 31eb3f3ba..7c89e7c4b 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -2578,7 +2578,7 @@ tt(command) keymap, and if not found there in the main keymap.
tindex(which-command)
item(tt(which-command) (tt(ESC-?)) (unbound) (unbound))(
Push the buffer onto the buffer stack, and execute the
-command `tt(which-command) var(cmd)'. where var(cmd) is the current
+command `tt(which-command) var(cmd)', where var(cmd) is the current
command. tt(which-command) is normally aliased to tt(whence).
)
tindex(vi-digit-or-beginning-of-line)
diff --git a/README b/README
index 993a79abd..64b0f4e4a 100644
--- a/README
+++ b/README
@@ -88,7 +88,7 @@ consistent and better aligned with the POSIX-2017 specification of
echo "This is printed only prior to 5.10."
- The `&&` and `||` operators now always ignore ERR_RETURN in their
- left operand. Until this version, the operators failed to ignored
+ left operand. Until this version, the operators failed to ignore
ERR_RETURN in their left operand if they were executed as part of
a function call or an anonymous function that was itself executed
in a context where ERR_RETURN is ignored. Example:
Messages sorted by:
Reverse Date,
Date,
Thread,
Author