From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7678 invoked from network); 5 May 2003 16:57:27 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 5 May 2003 16:57:27 -0000 Received: (qmail 26443 invoked by alias); 5 May 2003 16:57:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6076 Received: (qmail 26436 invoked from network); 5 May 2003 16:57:13 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 5 May 2003 16:57:13 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.233.9] by sunsite.dk (MessageWall 1.0.8) with SMTP; 5 May 2003 16:57:12 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h45GvBt24098 for zsh-users@sunsite.dk; Mon, 5 May 2003 09:57:11 -0700 From: "Bart Schaefer" Message-Id: <1030505165710.ZM24097@candle.brasslantern.com> Date: Mon, 5 May 2003 16:57:10 +0000 In-Reply-To: <20030505133637.GA26425@fysh.org> Comments: In reply to Zefram "Re: Getting the name of zsh-generated temp file?" (May 5, 2:36pm) References: <20030505133637.GA26425@fysh.org> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: Getting the name of zsh-generated temp file? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 5, 2:36pm, Zefram wrote: } Subject: Re: Getting the name of zsh-generated temp file? } } Lloyd Zusman wrote: } >Within a zsh script, is there any way that I can get the name of the } >temporary file generated by the =(...) construct? } } $ foo==(echo bar) } $ echo $foo } /tmp/zshp8oWrV } $ cat $foo } bar It should be pointed out that assigning the =(...) expression to a variable is meant to be the only way to get the temporary file to persist. In all other cases (and, in older versions of zsh, even for assignments) the file is automatically removed as soon as the surrounding expression completes. Lloyd originally wrote: > One of these is left sitting around in /tmp after each termination In short, This Should Not Happen unless zsh is crashing or you are doing something unusual to cause the file to be left behind.