Skip to content

[compat] rmdir: GNU incompatible handling of symlinks with multiple trailing slashes (uutils#9980) #279

Closed

Description

@caomengxuan666

上游

复现

mkdir d; ln -s d s; winuxcmd rmdir s/ 2>&1; echo rc=$?

实测对比(rmdir symlink slashes,grc=0 wrc=0)

GNU: /usr/bin/rmdir: failed to remove 's/': Not a directory
rc=1
WC : rc=0

状态

GAP-待修:已复现的真语义差距,未修复。修复建议见 GAP_REPORT.md。

Activity

  1. added
    compat-gap
    uutils
    on Sep 9, 2026
  2. caomengxuan666 commented on Sep 14, 2026

    @caomengxuan666
    MemberAuthor

    Fixed/verified in b9211d5 — GNU expression parser for test/[, rmdir refuses dir symlinks+junctions with GNU diagnostics, mkdir EEXIST/deep-path fixes, rm --no-preserve-root abbreviation refusal, chmod -v GNU output. Verified vs WSL coreutils 9.4.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    compat-gapuutils

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions