Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh changes appended MANPATH value to prepended value
- X-seq: zsh-users 30060
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-users@xxxxxxx
- Cc: injustsu@xxxxxxxxx
- Subject: Re: zsh changes appended MANPATH value to prepended value
- Date: Mon, 26 Aug 2024 18:37:32 -0400
- Archived-at: <https://zsh.org/users/30060>
- In-reply-to: <CAB=S_8+_95Cys679w_bdoKkJ-g6h4Yc7Y423sgJ8HqHegaggpQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAB=S_8+_95Cys679w_bdoKkJ-g6h4Yc7Y423sgJ8HqHegaggpQ@mail.gmail.com>
- Ui-outboundreport: notjunk:1;M01:P0:pEEZSMPoYYk=;qGoN9PLD6Nq2K4GdA/evmZrOO7v BajnoAJYkGa74y4d0390SqA2hWgju4biLCRxOTn8SP3OYhyy0EAQKQuynuKs8+iNl+o+e3T9o A3h/z6Gl7Bj5UlntDVZKbPH2k5isuslhSf9QN3J2r+so+Yr4j+W1zx8U0SNJxMuHATBSYiuMP aNkJC2Yh8dOa53xdF4nb9/LiWlIvD4fyBY9UG8t1CzML5Ratm8zdw7uQvAnwZFkIi84tERMVO KOJrkfWZZe8KE1XN2vGX87CmeLjfKQN9l7uUkgw3dQL5BBNc9XN6wbJnk9AyyakQPEJ2RcbKQ IAnguCFW/YrWFedDFTXgI99GBJftK+WqM0lRR7YSw6Wi0ziQpvXhox2EAef4E8vCruozHThT/ FuaO8Vhwd4uNlV1n2rDbyZvz7lfRFQzXdzsfNjeW7uNYhIkVW/A844R35juPXfVmuURTBiBUq IRFO5QJviGSzJzedUlrv47B7XSjz9pzxsq2RC4KPR/dJ/h6nNIWcd0ik6Gxn0h7nJP1A+HXWp FTUH6j6o5unet4cFHrB/ln01o0MNNNll7waGgNslW+GvanB2cT97GP9FI79mZGRmmkibpgzuD vVjpFLewuugoeB7m/OAQ1f8GqtHBpAYJDLsrwaO0URzAS8kqmkOU3YR856Gw9IMEdNAFG1GbS EueklOMq7vPq6NOzceo4IqvJfziGSy257X+hnu9cWdxM37ZjTSQUaXSDJ1i3t76SActosSo22 8rNb2Om3IHgfoyYs7u+Synt1YItn4DsCqDTVmJeOuT3yMGtsXSoIiuK2JWRqK1QO4IYiAtrlN AY4JJAjOmc0E4Bp5eaxqmFVg==
On 8/26/24 6:31 PM, Justin Su wrote:
I am using Ghostty terminal on macOS Sonoma. Ghostty appends itself to MANPATH on startup, so zsh inherits MANPATH as:
:/Applications/Ghostty.app/Contents/Resources/ghostty/../man
After zsh inits, MANPATH is:
/usr/share/man:/usr/local/share/man:/Applications/Ghostty.app/Contents/Resources/ghostty/../man:
That is, zsh changes MANPATH so that Ghostty is prepended, instead of appended.
This happens with no zsh user configuration. Please help me understand why this is happening, as I do not think this is correct behaviour.
Please cc me on all replies. Thanks in advance.
% grep -ri MANPATH Src
Src/init.c: manpath = mkarray(NULL);
Src/params.c: **manpath, /* $manpath */
Src/params.c:IPDEF8("MANPATH", &manpath, "manpath", PM_TIED),
Src/params.c:IPDEF9("manpath", &manpath, "MANPATH", PM_TIED),
outside of making $manpath tied to $MANPATH, zsh doesn't do anything with MANPATH.
So it is indeed configuration related, possibly done by your os vendor.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author