Skip to content

[rmdir] Non-empty directory diagnostic says 'Not empty' (GNU: 'Directory not empty') #1329

Closed

Description

@caomengxuan666

Summary

rmdir on a non-empty directory uses the wrong diagnostic wording.

Evidence (harness vs GNU, two runs)

  • rmdir d (d contains a file):
    • GNU: rmdir: failed to remove 'd': Directory not empty, rc1.
    • WinuxCmd: rmdir: failed to remove 'd': Not empty, rc1 — the word directory is missing from the reason text (the error mapper's rendering of ERROR_DIR_NOT_EMPTY).

Regression seed

  • The case above → expect the GNU string.

Found by the full-audit.

Activity

  1. added
    bug
    compat-gap
    on Oct 26, 2026
  2. caomengxuan666 commented on Oct 27, 2026

    @caomengxuan666
    MemberAuthor

    Verified fixed on current main (post-#1404): rmdir d on a non-empty directory prints rmdir: failed to remove 'd': Directory not empty (GNU wording), exit 1. The cluster REPORT had this as verify-only; closing on the probe evidence above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcompat-gap

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions