Hi,

The next update from Gnulib will add sc_codespell. The attached patch
will fix the 'make syntax-check' errors that occur as a result.

A few typo fixes, but mostly ignoring common variable names and sed
commands that codespell doesn't understand.

Collin

>From 910cc6d312278fc4afc30abe5f232ba4051ea93c Mon Sep 17 00:00:00 2001
From: Collin Funk <collin.fu...@gmail.com>
Date: Fri, 4 Apr 2025 12:35:15 -0700
Subject: [PATCH] maint: ensure that new "make syntax-check"-run sc_codespell
 passes

* cfg.mk (codespell_ignore_words_list): Ignore false-positives.
(exclude_file_name_regexp--sc_codespell): Skip some file names.
* doc/coreutils.texi (mktemp invocation): Use "alphanumeric" which is
consistent with the rest of the documentation.
* src/expand-common.c: Fix typo.
* src/ls.c: Likewise.
* tests/split/l-chunk-root.sh: Likewise.
---
 cfg.mk                      | 5 +++++
 doc/coreutils.texi          | 2 +-
 src/expand-common.c         | 2 +-
 src/ls.c                    | 2 +-
 tests/split/l-chunk-root.sh | 2 +-
 5 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/cfg.mk b/cfg.mk
index a085194b6..3e7ed9fd1 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -955,3 +955,8 @@ _gl_TS_unmarked_extern_vars = ptr_MD5_.*
 # Other tight_scope settings
 _gl_TS_dir = .
 _gl_TS_obj_files = src/*.$(OBJEXT)
+# Settings for running codespell.
+codespell_ignore_words_list = \
+  debbugs,clen,te,bu,shs,linke,fo,souch,inout,outin,kno,ois,afile,whats,hda,indx,ot,nam
+exclude_file_name_regexp--sc_codespell = \
+  ^(THANKS\.in|tests/pr/.*(F|tn?|l(o|m|i)|bl))$$
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 45f4c8002..d6633f04c 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -14803,7 +14803,7 @@ @node mktemp invocation
 three consecutive @samp{X}s in the last component.  If omitted, the template
 @samp{tmp.XXXXXXXXXX} is used, and option @option{--tmpdir} is
 implied.  The final run of @samp{X}s in the @var{template} will be replaced
-by alpha-numeric characters; thus, on a case-sensitive file system,
+by alphanumeric characters; thus, on a case-sensitive file system,
 and with a @var{template} including a run of @var{n} instances of @samp{X},
 there are @samp{62**@var{n}} potential file names.
 
diff --git a/src/expand-common.c b/src/expand-common.c
index 2dbbbe492..732123f8d 100644
--- a/src/expand-common.c
+++ b/src/expand-common.c
@@ -273,7 +273,7 @@ finalize_tab_stops (void)
 
 
 /* Return number of first tab stop after COLUMN.  TAB_INDEX specifies
-   amny multiple tab-sizes.  Set *LAST_TAB depending on whether we are
+   many multiple tab-sizes.  Set *LAST_TAB depending on whether we are
    returning COLUMN + 1 merely because we're past the last tab.
    If the number would overflow, diagnose this and exit.  */
 extern colno
diff --git a/src/ls.c b/src/ls.c
index 2cf4ee444..6690f7747 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -3538,7 +3538,7 @@ gobble_file (char const *name, enum filetype type, ino_t inode,
 
       /* Let the user know via '?' if errno is EACCES, which can
          happen with Linux kernel 6.12 on an NFS file system.
-         That's better than a longwinded diagnostic.
+         That's better than a long-winded diagnostic.
 
          Similarly, ignore ENOENT which may happen on some versions
          of cygwin when processing dangling symlinks for example.
diff --git a/tests/split/l-chunk-root.sh b/tests/split/l-chunk-root.sh
index 49d2e559d..df74a4384 100755
--- a/tests/split/l-chunk-root.sh
+++ b/tests/split/l-chunk-root.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
-# test splitting into newline delineated chunks from infinite imput
+# test splitting into newline delineated chunks from infinite input
 
 # Copyright (C) 2023-2025 Free Software Foundation, Inc.
 
-- 
2.49.0

Reply via email to