Subject: Re: bug#61681: [PATCH]maint: fix some typos

From: Pádraig Brady <[email-masked]>
Date: Tue, 21 Feb 2023 16:24:33 +0000

On 21/02/2023 14:18, ChuanGang Jiang wrote:
> * doc/coreutils.texi: s/functionalty/functionality/,
>     s/sychronize/synchronize/, s/millsecond/millisecond/
>     s/paramter/parameters/
> * init.cfg: s/parmeters/parameters/
> * scripts/build-older-versions/README.older-versions: s/vesion/version/
> * tests/misc/env-S-script.sh: s/paramaters/parameters/
> ---
>   doc/coreutils.texi                                 | 10 +++++-----
>   init.cfg                                           |  2 +-
>   scripts/build-older-versions/README.older-versions |  2 +-
>   tests/misc/env-S-script.sh                         |  2 +-
>   4 files changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/doc/coreutils.texi b/doc/coreutils.texi
> index 412c513a0..eedd7a374 100644
> --- a/doc/coreutils.texi
> +++ b/doc/coreutils.texi
> @@ -2237,7 +2237,7 @@ into (or from) base32 encoded form.  The base32 encoded form uses
>   printable ASCII characters to represent binary data.
>   The usage and options of this command are precisely the
>   same as for @command{base64}.  @xref{base64 invocation}.
> -For more general encoding functionalty see @ref{basenc invocation}.
> +For more general encoding functionality see @ref{basenc invocation}.
> 
> 
>   @node base64 invocation
> @@ -2261,7 +2261,7 @@ The base32 encoding expands data to roughly 160% of the original.
>   The format conforms to
>   @uref{https://tools.ietf.org/search/rfc4648, RFC 4648}.
> 
> -For more general encoding functionalty see @ref{basenc invocation}.
> +For more general encoding functionality see @ref{basenc invocation}.
> 
>   The program accepts the following options.  Also see @ref{Common options}.
> 
> @@ -12767,7 +12767,7 @@ of attribute access, especially useful with remote file systems.
>   Always read the already cached attributes if available.
> 
>   @item never
> -Always sychronize with the latest file system attributes.
> +Always synchronize with the latest file system attributes.
>   This also mounts automounted files.
> 
>   @item default
> @@ -16683,7 +16683,7 @@ Display the timestamp resolution instead of the time.
>   Current clock timestamps that are output by @command{date}
>   are integer multiples of the timestamp resolution.
>   With this option, the format defaults to @samp{%s.%N}.
> -For example, if the clock resolution is 1 millsecond,
> +For example, if the clock resolution is 1 millisecond,
>   the output is:
> 
>   @example
> @@ -17940,7 +17940,7 @@ prompt.
>   @cindex @command{env -S}, and single quotes
>   @cindex @option{-S}, env and single quotes
>   To test @command{env -S} on the command line, use single quotes for the
> -@option{-S} string to emulate a single paramter. Single quotes are not
> +@option{-S} string to emulate a single parameter. Single quotes are not
>   needed when using @command{env -S} in a shebang line on the first line of a
>   script (the operating system already treats it as one argument).
> 
> diff --git a/init.cfg b/init.cfg
> index 8b2d68b22..125de7f95 100644
> --- a/init.cfg
> +++ b/init.cfg
> @@ -603,7 +603,7 @@ gcc_shared_libs_=
> 
>   # Compile a shared lib using the GCC options for doing so.
>   # Pass input and output file as parameters respectively.
> -# Any other optional parmeters are passed to $CC.
> +# Any other optional parameters are passed to $CC.
>   gcc_shared_()
>   {
>     local in=$1
> diff --git a/scripts/build-older-versions/README.older-versions b/scripts/build-older-versions/README.older-versions
> index 690f9f0e0..e076fe931 100644
> --- a/scripts/build-older-versions/README.older-versions
> +++ b/scripts/build-older-versions/README.older-versions
> @@ -35,7 +35,7 @@ Details
>   GLibC version 2.28 removed non-standed headre file (libio.h) and some
>   internal symbols which were used by gnulib (a core component of GNU coreutils).
> 
> -These were announced as 'deprecated' in vesion 2.27 [1], and removed in
> +These were announced as 'deprecated' in version 2.27 [1], and removed in
>   version 2.28. Gnulib code was adjusted shortly after [2],
>   but the code changes obviously can't be retroactively made to
>   previously-released coreutils versions.
> diff --git a/tests/misc/env-S-script.sh b/tests/misc/env-S-script.sh
> index ace112c0d..1d9b3e268 100755
> --- a/tests/misc/env-S-script.sh
> +++ b/tests/misc/env-S-script.sh
> @@ -69,7 +69,7 @@ compare exp1 out1 || fail=1
> 
> 
>   # similar to the above test but with quotes, the first parameter should be
> -# 'A B' and not two paramaters 'A','B'.
> +# 'A B' and not two parameters 'A','B'.
>   # Ignoring the absolute paths, the script is:
>   #     #!env -S printf x%sx\n "A B"
>   printf "#!$dir/env -S $dir/printf "'x%%sx\\n "A B"\n' > env2 ||
> --
> 2.36.1

Pushed with the commit summary adjusted to "doc:..."
since this affects user visible docs.

Marking this as done.

Thanks!
Pádraig