zsh: keep each PATH directory once #260

Merged
mesh-admin merged 1 commits from fix/zsh-unique-path into main 2026-10-04 09:34:45 +00:00
Contributor

On g14, PATH carried several entries three times. The session added them, then every nested shell and every prepending file added them again.

typeset -U path PATH in the .zshenv block makes every zsh keep the first occurrence of each directory. Checked: PATH=/a:/b:/a then /b prepended gives /b:/a; zsh tests 16/16; module check passes.

On g14, PATH carried several entries three times. The session added them, then every nested shell and every prepending file added them again. `typeset -U path PATH` in the `.zshenv` block makes every zsh keep the first occurrence of each directory. Checked: `PATH=/a:/b:/a` then `/b` prepended gives `/b:/a`; zsh tests 16/16; module check passes.
mesh-admin added 1 commit 2026-10-04 09:34:38 +00:00
Every nested shell, and every sourced file that prepends, added the same
directories again; a workstation's PATH carried each of several entries three
times. typeset -U in the .zshenv block applies to every zsh.
mesh-admin merged commit 9e63a258d0 into main 2026-10-04 09:34:45 +00:00
mesh-admin deleted branch fix/zsh-unique-path 2026-10-04 09:34:45 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-catalog#260