Commit Graph
31163 Commits
Author SHA1 Message Date
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
Pádraig Brady acf0acd0c9 tests: stty: avoid false failure if resizing terminal
* tests/stty/stty-row-col.sh: Skip the test if we detect terminal
resizing.  Also more robustly restore the original size.
2026-01-24 12:49:52 +00:00
Collin Funk c351e1965d tests: readlink: avoid a false failure on Haiku
* tests/readlink/readlink-posix.sh: Allow the "A" in "Argument" to be
capitalized in return value of strerror (EINVAL).
2026-01-24 12:47:51 +00:00
Collin Funk be0a448133 doc: NEWS: add a missing quotation mark
* NEWS: Add a closing quotation mark.
2026-01-23 20:15:57 -08:00
Pádraig Brady bdf53cc685 tests: usage_vs_refs.sh: fix false failure with Alpine
* tests/misc/usage_vs_refs.sh: Fix missing escape on literal {,
required by busybox grep.
Reported by Bruno Haible.
2026-01-23 22:32:20 +00:00
Egmont Koblinger 25fccc7c46 doc: dir,vdir: add dircolors(1) reference to man pages
* man/dir.x: Add dircolors(1) to "SEE ALSO" section.
* man/vdir.x: Likewise.
2026-01-22 16:27:13 +00:00
Pádraig Brady 115a600100 doc: dir,vdir: fix anchor refs from --help
* src/system.h (oputs_): Map from dir,vdir to ls.
2026-01-22 16:23:41 +00:00
Egmont Koblinger b76c1539ad doc: stat: fix highlighting of --format
* src/stat.c (usage): Add missing comma after -c.
2026-01-22 16:15:26 +00:00
Pádraig Brady 343cae4aed doc: NEWS: minor adjustments
* NEWS: Fix typos, and move item to more appropriate section.
2026-01-22 16:13:26 +00:00
Pádraig Brady 49420ca7d9 doc: pr: fix --help output output
* src/pr.c (usage): Use consistent alignment with -J,
and highlight --pages using oputs().
2026-01-22 13:00:38 +00:00
Pádraig Brady eaf38a2412 doc: help2man: handle leading '+' in options
* man/help2man: Fix indentation of options with leading '+'.
2026-01-22 12:45:13 +00:00
Pádraig Brady 58ba9580e7 tests: fix false failure with pr -COLS
* tests/misc/usage_vs_getopt.sh: Fix false failure induced
by commit v9.9-239-ga06f0cf67
2026-01-22 11:56:50 +00:00
Pádraig Brady 87219034b7 doc: use TERM=dumb rather than HELP_NO_MARKUP to disable markup
This is a more standard mechanism to disable markup.

* src/system.h (oputs_): Logic change to honor TERM=dumb,
rather than HELP_NO_MARKUP=something.
* doc/coreutils.texi: Adjust the description for --help.
* man/local.mk: Ensure TERM is set to something,
so that man pages have links included.
* man/viewman: Just honor users $TERM.
* tests/misc/getopt_vs_usage.sh: Remove env var complication,
as TERM is unset automatically.
* tests/misc/usage_vs_refs.sh: Likewise.
* NEWS: Adjust the change in behavior note.
2026-01-22 11:42:47 +00:00
Pádraig Brady bdc45990c7 tests: avoid false failure with non standard path
* tests/misc/usage_vs_refs.sh: Properly quote arguments
to avoid false failure with paths containing spaces etc.
2026-01-21 19:30:21 +00:00
Pádraig Brady 3e57f08e36 tests: avoid infinite loop in dd failure edge case
* tests/tee/tee.sh: If dd failed, then tee would spin
writing to the fifo forever, so add a timeout protection.
This was noticed with `export LD_PRELOAD=libasan.so.8`
with a non ASAN build, which induced a failure in dd invocations.
2026-01-21 19:00:03 +00:00
Pádraig Brady f9eebda93c tests: avoid false failure with sanitizer builds
* init.cfg (sanitizer_build_): Add a helper to detect if a program
is built against a sanitizer.
* tests/df/no-mtab-status-masked-proc.sh: Skip if a sanitizer build.
2026-01-21 17:49:39 +00:00
Pádraig Brady 28c29d103e stat,tail: sync with latest Linux file systems
* src/stat.c (human_fstype): Add "guest-memfd".
* NEWS: Mention the improvement.
2026-01-21 16:29:03 +00:00
Pádraig Brady 92df52d791 tests: avoid false failure on setgid dir
* tests/misc/mknod.sh: Skip a portion of the test
in the edge case of setgid directories.
2026-01-21 16:06:51 +00:00
Pádraig Brady dfeb32f6e2 ls: --hyperlink: switch to more standard delimiters
* src/ls.c (quote_name): Use ST (ESC \) rather than BEL,
as that's the only terminator mentioned in at least
ECMA-48, DEC STD 070, and EK-VT520-RM.
* NEWS: Mention the change in behavior.
* tests/ls/hyperlink.sh: Adjust accordingly.

Suggested by Egmont Koblinger.
2026-01-21 14:05:48 +00:00