Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: TMPDIR vs TMPPREFIX again
- X-seq: zsh-users 30738
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Daniel Colascione <dancol@xxxxxxxxxx>
- Cc: zsh <zsh-users@xxxxxxx>
- Subject: Re: TMPDIR vs TMPPREFIX again
- Date: Fri, 14 Aug 2026 05:00:06 +0200
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Gfc70gQV3/zcN2tV8z/DO5xy8OQag1u+mZEXsZqIDUw=; fh=vGSJgCR0p97CinuhVgxvI4WL8Zarbo41Tg0NB+DmXk4=; b=THnRLztT+Hu4xerva9M94GXXGCgAz2qYS5msyf6q/w/XnceMPJO9Xs7dIVcRBR5aMx 4K9cSqCJHyV8hrW70C9mApCoEN5xxw7cazt/hu+ra7HeCBXBYI7CtCAqLpkxBeijZrJR lfu2slKAFn+fhv0h8zZ5F3iPIQKHyJI3++Hzbm32BYddGJtBPPECkGfY25WcL/t9GiX7 zRZew4Oo5g0/6C88B4qVxvUNh48UYLbHrDxLnSPVlmzgOyrGNLeuD/mFWtCddjvsoShm DneNdvuLziGbPudpsEgU8aMQIdanbRclH6NdVmhn3j7I0Fc3dxSPWS+LZRMPaJM9QZck 6dDQ==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1786676420; cv=none; d=google.com; s=arc-20260327; b=P/9ZUpLilDuSkvyEGRx/KVraaH1V0jjfJ8nHvKAcn7nGvjFF+u9XGRzKQZicqKl2Uf AWwKsf0WvpqV1pwcB6u6+kwZZNAuVmVuZqg+skD1NbaSMe6TEkTfz2ETG18AJSWuZTfG i4Pjzf6BBEICS13NNbLEdVq0zUcoY/LMbM/2Neq/WMfgjS54ciLEQofjpeUt5KTBBarB tIrtFoCkuADORKdwFvo9afcE9Xxtr+nsRTgGQ86xoHQqUe0PM957TBnNu/IVE4UlqAEV +emRU3OPoJGwoo4sBUkELEYJ9FcnwmFn1wYnWhPwU1SJxASBI1W3S8hYbQz1sfCFUoi2 K0FQ==
- Archived-at: <https://zsh.org/users/30738>
- In-reply-to: <87tsox3jbu.fsf@dancol.org>
- List-id: <zsh-users.zsh.org>
- References: <87tsox3jbu.fsf@dancol.org>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author