On Thu, Aug 13, 2026 at 9:52 PM Daniel Colascione <dancol@xxxxxxxxxx> wrote:
>
> Might it be possible (as others have suggested over the years) to
> incorporate TMPDIR into TMPPREFIX so that zsh works properly when run in
> an environment with read-only /tmp but writable TMPDIR?
How would that work in practice?
% echo $TMPPREFIX
/tmp/zsh
% echo $TMPDIR
% TMPDIR=/foo/tmp
% echo $TMPPREFIX # do you expect this to be different now? what if
the user had set it manually? etc?
It is also really trivial to just set TMPPREFIX yourself to whatever
value you want, no?
--
Mikael Magnusson