+
Skip to content

Conversation

cakebaker
Copy link
Contributor

@cakebaker cakebaker commented Jul 14, 2025

This PR shows the version info when --version is the only argument and POSIXLY_CORRECT is not set. It matches the behavior of GNU echo:

$ ../gnu/src/echo --version
echo (GNU coreutils) 9.7-modified
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Brian Fox and Chet Ramey.
$ POSIXLY_CORRECT=1 ../gnu/src/echo --version
--version

The PR also renames a test function to make the naming more consistent.

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)

@RenjiSann RenjiSann merged commit 4d08b9d into uutils:main Jul 15, 2025
116 of 117 checks passed
@cakebaker cakebaker deleted the echo_output_version branch July 16, 2025 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载