Skip to content

Self-produced path values unify to POSIX form (approved A from #329): PWD vs (pwd) mismatch, TMPDIR default backslash form, full-path 0 #331

Closed

Description

@caomengxuan666

Approved follow-up from the #329 decision (report: docs/issue329-path-form-policy-analysis.md). Our own produced path values are inconsistent: PWD is /d/ form but command-substitution (pwd) renders D:/ form; the self-injected TMPDIR default is backslash Windows form; full-path 0 is drive-letter form (#224 legacy). Unify self-produced values to POSIX form per GNU semantics. The parent-layer export-boundary conversion (the actual nvm/webi sed-colon corruptor) is being filed upstream separately.

Activity

  1. added
    bug
    on Sep 29, 2026
  2. caomengxuan666 commented on Sep 29, 2026

    @caomengxuan666
    MemberAuthor

    Fixed by wt16/fix16 (ee6bea9 + b406f7f, master): our own produced paths now render POSIX form — main.rs BASH (D:/ -> /d/), argv[0]-derived $0 (backslash form, the #224 legacy), and the init-injected TMPDIR default (backslash form, converted at the injection site while internal PathBuf consumers keep the raw string). Inherited values stay byte-faithful per the #329 decision (rejected: re-rendering inherited drive-letter values). $ (pwd) == $PWD consistency held on this baseline. Follow-up pinned in b406f7f (stdin-script $0 POSIX form test update).

  3. added 2 commits that reference this issue on Oct 12, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions