Skip to content

rm: hint to use ./-foo when removing a dash-prefixed file#12608

Merged
sylvestre merged 1 commit into
uutils:mainfrom
sylvestre:rm-gnu-dash-hint-test
Jun 8, 2026
Merged

rm: hint to use ./-foo when removing a dash-prefixed file#12608
sylvestre merged 1 commit into
uutils:mainfrom
sylvestre:rm-gnu-dash-hint-test

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/cut/bounded-memory (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/date/date-locale-hour (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/symlink (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/pr/bounded-memory (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/pid-pipe (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/rm/dash-hint is no longer failing!

@cakebaker

Copy link
Copy Markdown
Contributor

I don't know if you have seen it: the new test fails on Windows with:

thread 'test_rm::test_dash_hint' (9316) panicked at tests\uutests\src\lib\util.rs:1161:39:
    called `Result::unwrap()` on an `Err` value: Os { code: 123, kind: InvalidFilename, message: "The filename, directory name, or volume label syntax is incorrect." }

@sylvestre sylvestre force-pushed the rm-gnu-dash-hint-test branch from ad0e24c to 3335656 Compare June 5, 2026 11:35
@codspeed-hq

codspeed-hq Bot commented Jun 5, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 3.06%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 1 regressed benchmark
✅ 322 untouched benchmarks
⏩ 46 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation du_max_depth_balanced_tree[(6, 4, 10)] 25.2 ms 26 ms -3.06%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing sylvestre:rm-gnu-dash-hint-test (3335656) with main (533edad)2

Open in CodSpeed

Footnotes

  1. 46 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (4353689) during the generation of this report, so 533edad was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@sylvestre sylvestre merged commit dab9392 into uutils:main Jun 8, 2026
218 of 235 checks passed
@collinfunk

Copy link
Copy Markdown

I find it a bit annoying that my review was ignored. I wrote the tests/rm/dash-hint.sh test under GPLv3+, and this pull request is essentially a verbatim copy of it.

@sylvestre

Copy link
Copy Markdown
Contributor Author

sorry, i didn't see your review
where did you share it ?

@collinfunk collinfunk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My fault. GitHub isn't clear who "Pending" is waiting on approval from the submitter or maintainer. In this case it was me, the submitter.

Anyways, I have noticed this is one of a few pull requests I have noticed recently which has contained verbatim copies of tests from GNU coreutils.

Comment thread tests/by-util/test_rm.rs
@sylvestre

Copy link
Copy Markdown
Contributor Author

Anyways, I have noticed this is one of a few pull requests I have noticed recently which has contained verbatim copies of tests from GNU coreutils.

I will make sure it doesn't happen again
(you are probably aware but some tests in GNU coreutils are coming from me too :)

@sylvestre sylvestre deleted the rm-gnu-dash-hint-test branch June 9, 2026 08:35
@collinfunk

Copy link
Copy Markdown

Anyways, I have noticed this is one of a few pull requests I have noticed recently which has contained verbatim copies of tests from GNU coreutils.

I will make sure it doesn't happen again (you are probably aware but some tests in GNU coreutils are coming from me too :)

Yes, which is why I checked the author first. In this case, I was the sole author of the test. The copyright assignment allows you freedom to do what you wish with your own work; search "grantback" on this page [1].

I find it a bit frustrating to see this repeated multiple times, though, after I warned about it here [2].

[1] https://www.fsf.org/bulletin/2022/fall/copyright-assignment-with-the-fsf
[2] #12136 (comment)

@sylvestre

Copy link
Copy Markdown
Contributor Author

yeah, sorry again :(

(i did the copyright assignment to the FSF for gcc 10+ years ago)

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