Commit Graph
31181 Commits
Author SHA1 Message Date
oech3 fc42e7d281 tests: cp: ensure --debug output failure is diagnosed
* tests/cp/debug.sh: cp diagnostics are written to stdout,
so ensure output errors are diagnosed.
https://github.com/coreutils/coreutils/pull/192
2026-02-12 16:33:38 +00:00
oech3 78e97507e6 tests: arch: add option parsing check
* tests/misc/arch.sh: Ensure -- to indicate end of options is accepted.
https://github.com/coreutils/coreutils/pull/191
2026-02-12 16:26:44 +00:00
Pádraig Brady b4c6e3cb7f tests: date: check dotted EU dates in combination
* tests/date/date.pl: Add other date elements
to ensure abbreviated dotted dates are parsed appropriately.
Corresponds to gnulib commit 451042cb76
2026-02-12 14:52:06 +00:00
Pádraig Brady 1f2aa39882 build: update gnulib to latest 2026-02-12 14:03:28 +00:00
Pádraig Brady 3d35e82b9b tests: determine errno string more efficiently
* tests/misc/read-errors.sh: Use getlimits_ determined EIO error string,
rather than inferring the string from bash's output.
See https://bugs.gnu.org/80353
2026-02-10 12:36:06 +00:00
Pádraig Brady 8732e7e95e tests: getlimits: output error strings
* src/getlimits.c (main): Iterate over defined errnos,
and output shell compatible error strings.
* tests/Coreutils.pm: Adjust so shell quotes are stripped.
2026-02-10 12:24:17 +00:00
Collin Funk 224b90e603 maint: pinky: reduce variable scope
* src/pinky.c (create_fullname, idle_string, print_entry)
(print_long_entry, main): Declare variables where they are used instead
of at the start of the function. Initialize variables where they are
declared.
2026-02-09 22:30:48 -08:00
Pádraig Brady 1317074513 maint: remove extraneous code from test
* tests/misc/usage_vs_refs.sh: Remove copy and paste slop.
* tests/local.mk: Fix indentation.
2026-02-09 11:32:57 +00:00
Collin Funk 6bbf04db63 nl: support multi-byte section delimiters
* NEWS: Mention the improvement.
* src/nl.c: Include mcel.h.
(DEFAULT_SECTION_DELIMITERS): Resize to fit 2 multi-byte characters.
(section_del_len): New variable.
(check_section): Compare against section_del_len instead of 2.
(main): Support multi-byte characters for the -d option.
* tests/nl/multibyte.sh: New file.
* tests/nl/nl.sh: New file, moved from tests/misc/nl.sh.
* tests/local.mk (all_tests): Add the new test. Adjust the existing
tests file name.
* cfg.mk (exclude_file_name_regexp--sc_space_tab): Adjust Adjust the
existing tests file name.
2026-02-08 18:45:24 -08:00
Pádraig Brady a3dbfb60e4 tests: fix false failure with dash or ksh
* tests/misc/read-errors.sh: Avoid dash or ksh as they
do _not_ print an error message upon EIO from read.
Fixes https://bugs.gnu.org/80353
2026-02-08 19:52:46 +00:00
Gabriel e2c7db6c70 date: add tests and NEWS for dd.mm.yy support
* NEWS: Mention the new feature.
* tests/date/date.pl: Add test cases.
2026-02-08 16:25:44 +00:00
Pádraig Brady c01781e09b build: update to latest gnulib
* gnulib: Update to pick up support for dd.mm.yy format
in parse-datetime.
2026-02-08 16:24:00 +00:00
Sam James a72ad1216d build: fix --enable-single-binary=hardlinks with dash
With dash as /bin/sh, you get the error
```
checking for sys/capability.h... yes
./configure: 95775: test: no: unexpected operator
checking for working fork... yes
```

* configure.ac: Use '=' in test for equality, not '==',
for POSIX shell compatibility.
* NEWS: Mention the build fix.
2026-02-08 11:18:34 +00:00
oech3 1c4773e6ec tests: ptx: ensure bad unicode is supported
* tests/ptx/ptx-overrun.sh: Ensure bad_unicode() is processed.
2026-02-07 22:02:43 +00:00
Sylvestre Ledru 5901e4425a tests: cp: ensure read-only dir perms preserved
* tests/cp/readonly-dir.sh: Add new test.
* tests/local.mk: Reference new test.
Identified here https://github.com/uutils/coreutils/issues/7961
2026-02-07 21:54:24 +00:00
Collin Funk 2cf491412c doc: NEWS: mention the recent kill documentation fix
* NEWS: Mention that the kill documentation now has the anchors expected
by 'kill --help'.
2026-02-06 16:06:28 -08:00
Collin Funk 94f13435b3 tests: fold: check that all files are processed
* tests/fold/multiple-files.sh: New file.
* tests/local.mk (all_tests): Add the test.
2026-02-06 15:46:44 -08:00
Collin Funk 4fb263ce69 tests: nl: check that all files are processed
* tests/misc/nl.sh: Add a test case.
2026-02-06 15:46:44 -08:00
Dr. David Alan Gilbert eaac58cffa maint: unexpand: remove dead store
The assign to next_tab_column in the backspace branch is never
read; in fact it's always written and then read solely inside the
blank branch.

Move the declaration of 'next_tab_column' down into the blank
branch, and remove its assignment in the backspace branch.

Spotted by the 'infer' static checker.

* src/unexpand.c (unexpand): Remove dead store of next_tab_column.
2026-02-06 14:43:24 +00:00
oech3 9240ef6700 tests: ptx: add a robustness test case
* tests/ptx/ptx-overrun.sh: Ensure input is processed without issue.
https://github.com/coreutils/coreutils/pull/184
2026-02-06 13:51:24 +00:00
Pádraig Brady ddb8b78a2c doc: pr: use -COLS consistently
Help this back from release as would break a couple of translations.

* src/pr.c: Use COLS rather than COLUMN consistently
in comments and usage().
2026-02-06 13:37:58 +00:00
Collin Funk 088c011bfc doc: kill: adjust documentation to produce html anchors for --help
* doc/coreutils.texi (kill invocation): Adjust documentation to use the
@optItem macros.
Fixes https://bugs.gnu.org/80339
Fixes https://github.com/coreutils/coreutils/issues/185
2026-02-06 13:36:18 +00:00
Pádraig Brady 417e43327c maint: remove local maintainer-makefile adjustment
* gl/top/maint.mk.diff: Remove as the fix is now in gnulib.
* gl/local.mk: Remove the diff reference.
2026-02-05 12:58:35 +00:00
Pádraig Brady d00cb53faa maint: update gnulib to latest 2026-02-05 12:56:30 +00:00
Pádraig Brady ff91b77b0f build: propagate $SHELL to makeinfo-wrapper.sh
A user that had an environment with SHELL=/usr/bin/fish
reported the following when trying to build info docs:

  build-aux/missing (line 4): Unsupported use of '='. In fish

* doc/local.mk: Propagate make's SHELL to our
makeinfo wrapper, so that the substituted ${SHELL}
uses a compatible shell from the Makefile.
2026-02-05 12:52:47 +00:00
Collin Funk e0b2db00ad tests: df: check that --sync always calls sync before statfs
* tests/df/sync.sh: New file.
* tests/local.mk (all_tests): Add the test.
2026-02-04 16:49:12 -08:00
Collin Funk ddfe86bddf stat,df: remove an unnecessary alloca
* src/find-mount-point.c (find_mount_point): Don't call ASSIGN_STRDUPA
on the result of dir_name.
2026-02-04 16:42:26 -08:00
Pádraig Brady cc64b63e99 maint: post-release administrivia
* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.
2026-02-04 12:20:32 +00:00
Pádraig Brady 89b2cd58ac version 9.10
* NEWS: Record release date.
v9.10
2026-02-04 11:45:38 +00:00
Pádraig Brady d9fb823121 maintainer-makefile: propagate MAKEINFO to gendocs
Make this change temporarily in coreutils.
Move to gnulib after v9.10 is released.

* top/maint.mk (web-manual): Propagate MAKEINFO explicitly,
rather than requiring it exported in the environment,
which can be awkward on Solaris make for example.
2026-02-02 21:20:43 +00:00
Pádraig Brady 41188ee3b8 tests: avoid false failure sync'ing busy systems
* tests/misc/sync.sh: Increase the timeout to 60s,
and restrict the case to when RUN_VERY_EXPENSIVE_TESTS=yes.
2026-02-02 12:55:37 +00:00
Pádraig Brady 32a5bf1ead doc: improve highlighting of dd --help translations
* src/system.h (oputs_): Ensure we're not matching '-' in
translated descriptions.  Also support highlighting only
dd "foo=bar" when the description is separated with a single space.
2026-01-31 22:08:09 +00:00
Pádraig Brady 18811574a2 maint: avoid prohibit-const-char syntax check failure
* src/copy.c: Avoid prohibit-const-char failure,
newly triggered by the (correct) recent adjustment.
2026-01-30 14:12:12 +00:00
Pádraig Brady b3a96b8b0b doc: move xgettext: hint to the correct translated string
* src/fmt.c (usage): Move comment down to the newly separated string.
Discussed in https://github.com/coreutils/coreutils/issues/178
2026-01-30 13:31:27 +00:00
Paul Eggert d72a03cedb maint: space between ‘char’ and ‘*’ 2026-01-28 11:25:36 -08:00
Collin Funk 29cee19e18 tests: date: test that %% in the string is not replaced
* tests/date/percent-percent.sh: New file.
* tests/local.mk (all_tests): Add it.
2026-01-27 19:13:33 -08:00
Pádraig Brady f2af245eba doc: improve highlighting of single spaced translations
* src/system.h (oputs_): Translations sometimes use a single space
between an option and its description.  They only do this though
for long options since they result in less available screen space.
Therefore be more strict with option matching once we've encountered
a long option, which supports the more varied formats often
associated with short options.
2026-01-27 17:59:38 +00:00
Collin Funk 6add5f97ec maint: avoid syntax-check failure
* man/date.x: Add a copyright header to fix sc_copyright_check.
Reported by Bruno Haible.
2026-01-26 18:47:17 -08:00
Collin Funk 2bd3e8bb7a tests: tac: test --regex with anchors in the separator
* tests/tac/tac.pl (@Tests): Add a few test cases.
2026-01-26 18:37:37 -08:00
Paul Eggert c9f943b2e3 doc: fit in 80 columns 2026-01-26 15:01:02 -08:00
Paul Eggert f3980d7cfa doc: fix date(1) synopses etc
Font problem reported by Michael Aramini via Alejandro Colomar
<https://bugs.gnu.org/80258>.  This patch also fixes some
longstanding confusion with date synopses.
* src/date.c (usage): Do not imply that only -u can be used with
MMDDhhmm..., and do not put misleading brackets around the latter.
2026-01-25 19:08:53 -08:00
Collin Funk 9cb06a7d13 tests: mktemp: export LC_ALL
* tests/mktemp/bad-unicode.sh: Run this test case using multiple
locales.
2026-01-25 21:19:45 +00:00
Pádraig Brady ca68ab6c8a doc: support TAB as a delimiter between --option and description
* src/system.h (oputs_): Treat a single TAB as an option delimiter.
Some zh translations use this delimiter format.
2026-01-25 21:19:45 +00:00
Collin Funk c3894e0723 tests: chgrp: allow a numeric user id to be printed
* tests/chgrp/from.sh: If 'id' cannot find a user name for user id 1,
expect the user id to be printed in the message of 'chgrp'.
Reported by Bruno Haible.
2026-01-24 15:06:51 -08:00
Pádraig Brady ebb856730c tail: fix EINTR handling on older systems
tail(1) could fail with an "Interrupted system call"
diagnostic, on some systems like Centos 5 (Linux 2.6.18).
This was seen with tests/tail/overlay-headers.sh
which sends SIGCONT, which should not induce a failure.

* src/tail.c (tail_forever_inotify): Retry the poll()
upon receiving a non terminating signal, and the syscall
is not automatically restarted by the system.
* NEWS: Mention the bug fix.
Reported by Bruno Haible.
2026-01-24 20:00:32 +00:00
Collin Funk ec77664a31 tests: avoid failures if 'ulimit -n' cannot set file descriptor limits
This fixes test failures seen on Haiku.

* tests/ls/recursive.sh: Run 'ls' even if ulimit fails.
* tests/split/r-chunk.sh: Run 'split' even if ulimit fails.
* tests/sort/sort-merge-fdlimit.sh: Skip test if 'ulimit -n' cannot set
file descriptor limits.
Reported by Bruno Haible.
2026-01-24 11:20:56 -08:00
Pádraig Brady 75c671415e tests: dd: avoid EPERM false failure on Solaris
* tests/dd/fail-ftruncate-fstat.sh: Also map the "Not owner"
error for EPERM seen on earlier Solaris 11 releases.
Reported by Bruno Haible.
2026-01-24 14:53:30 +00:00
Pádraig Brady 1361ade5c4 doc: nproc: mention OpenMP env vars in --help
* src/nproc.c (usage): Clarify the impact of 'OMP_NUM_THREADS'
and 'OMP_THREAD_LIMIT' in --help and the man page.
Also mention that nproc(1) will always return > 0.
Fixes https://bugs.gnu.org/80243
2026-01-24 13:49:03 +00:00
Pádraig Brady 3cec88e51e build: update to latest gnulib
* gnulib:
  - getdelim, getline: Don't replace these functions on glibc
  - selinux: fix link errors with termux
2026-01-24 13:03:51 +00:00
Bruno Haible f748dc7133 tests: recognize SELinux support on Android
* init.cfg (require_selinux_): Also try to see if 'mount' lists the
selinuxfs.
2026-01-24 13:01:57 +00:00