1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-10 09:21:58 +02:00
Commit Graph

31173 Commits

Author SHA1 Message Date
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
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