Skip to content

v5.4.4

Latest

Choose a tag to compare

@Byron Byron released this 10 Sep 04:08
ba35e00

Bug Fixes

  • open Windows paths without wildcard expansion

    Opening a child of a bracket-named directory fails because Start-Process
    resolves parent directories as PowerShell wildcard patterns. The isolated
    Windows regression test reproduced WildcardPatternException for a copied
    executable under "【Tiny Asa】 [77P7V-712MB]\child" before this change.

    Use Test-Path and Invoke-Item with LiteralPath for existing items, retaining
    Start-Process for URLs and application names. These cmdlets also work under
    PowerShell Constrained Language Mode. Share the embedded script between
    Windows and WSL, keep targets in environment data, and stop on launch errors
    to report a nonzero exit status. Preserve the security boundary established
    in fd29861: cmd /c start remains opt-in through the insecure feature. No
    previously removed launcher options are restored.

    The integration test launches only a copy of its own test binary, which
    records its executable path and exits. It checks absolute and relative paths
    with invalid and valid bracket patterns, Unicode, backticks, quotes, shell
    metacharacters, and leading dashes in normal and constrained PowerShell
    sessions, plus failure for a missing executable. It requires neither Explorer
    nor registered document or URL handlers. Adjust the existing fallback
    assertion to also allow the opt-in cmd launcher after Explorer with all
    features enabled.

    Validated locally on Windows with PowerShell 5.1.26100.33438 and rustc 1.97.1:
    cargo test and cargo test --all-features each passed all 19 tests, including
    the behavioral regression. git diff --check passed, and cargo
    package --list includes the embedded script. Test-Path returned false without
    errors for representative https, mailto, and file URLs. Actual GUI folder,
    document, URL handling and WSL interop were not exercised locally.

Commit Statistics

  • 2 commits contributed to the release.
  • 8 days passed between releases.
  • 1 commit was understood as conventional.
  • 1 unique issue was worked on: #132

Commit Details

view details
  • #132
    • Open Windows paths without wildcard expansion (ad95c40)
  • Uncategorized
    • Merge pull request #133 from Byron/fix-open-on-windows (45317f8)