Skip to content

fix(env): escape and deduplicate POSIX shell paths - #2494

Open
fengmk2 wants to merge 1 commit into
agent/fish-shell-snapshotsfrom
agent/posix-shell-snapshots
Open

fix(env): escape and deduplicate POSIX shell paths#2494
fengmk2 wants to merge 1 commit into
agent/fish-shell-snapshotsfrom
agent/posix-shell-snapshots

Conversation

@fengmk2

@fengmk2 fengmk2 commented Aug 19, 2026

Copy link
Copy Markdown
Member

Tests selected POSIX shell names but did not source the generated environment file. They did not test the generated shell code.

The old template did not escape special characters in paths. It also removed one duplicate Vite+ bin entry and left other duplicates.

The snapshot runner runs the file in sh, Bash, and Zsh. CI installs Zsh when a Linux runner does not have it. CI checks Zsh on each runner and supplies its path to the snapshot runner.

The renderer escapes values in double-quoted strings. It removes the duplicate bin entries before it adds one entry. The tests cover setup, completion, version selection, unset, and .node-version selection.

Stack created with GitHub Stacks CLIGive Feedback 💬

@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Native binary sizes (7977d2c)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.

Artifact Format Base PR Change
vp (Linux x64) Binary 10.70 MiB 10.70 MiB 0 B (0.00%)
vp (Linux x64) gzip -9 4.63 MiB 4.63 MiB -64 B (-0.00%)
NAPI (Linux x64) Binary 32.03 MiB 32.03 MiB 0 B (0.00%)
NAPI (Linux x64) gzip -9 12.61 MiB 12.61 MiB 0 B (0.00%)
vp (macOS ARM64) Binary 8.00 MiB 8.00 MiB 0 B (0.00%)
vp (macOS ARM64) gzip -9 4.04 MiB 4.04 MiB -136 B (-0.00%)
NAPI (macOS ARM64) Binary 39.68 MiB 39.68 MiB 0 B (0.00%)
NAPI (macOS ARM64) gzip -9 16.92 MiB 16.92 MiB -2 B (-0.00%)
vp (Windows x64) Binary 8.59 MiB 8.59 MiB 0 B (0.00%)
vp (Windows x64) gzip -9 3.75 MiB 3.75 MiB +28 B (+0.00%)
NAPI (Windows x64) Binary 26.91 MiB 26.91 MiB 0 B (0.00%)
NAPI (Windows x64) gzip -9 10.69 MiB 10.69 MiB +32 B (+0.00%)
Trampoline (Windows x64) Binary 216.50 KiB 216.50 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 104.34 KiB 104.34 KiB +2 B (+0.00%)
Installer (Windows x64) Binary 4.48 MiB 4.48 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.10 MiB 2.10 MiB -2 B (-0.00%)

@fengmk2
fengmk2 force-pushed the agent/posix-shell-snapshots branch from 31b1349 to 3c608f3 Compare August 19, 2026 02:59
@fengmk2 fengmk2 changed the title test(env): execute POSIX shell snapshots fix(env): escape and deduplicate POSIX shell paths Aug 19, 2026
@fengmk2
fengmk2 force-pushed the agent/posix-shell-snapshots branch 2 times, most recently from 6dbc0c3 to 3ac8e95 Compare August 19, 2026 05:56
@fengmk2
fengmk2 marked this pull request as ready for review August 19, 2026 06:00
@fengmk2
fengmk2 requested review from liangmiQwQ, naokihaba and wan9chi and removed request for naokihaba August 19, 2026 06:00
@fengmk2
fengmk2 force-pushed the agent/posix-shell-snapshots branch from 3ac8e95 to 7977d2c Compare August 19, 2026 14:30
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