From: "Bart Schaefer" <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: Getting the name of zsh-generated temp file?
Date: Mon, 5 May 2003 16:57:10 +0000 [thread overview]
Message-ID: <1030505165710.ZM24097@candle.brasslantern.com> (raw)
In-Reply-To: <20030505133637.GA26425@fysh.org>
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.
next prev parent reply other threads:[~2003-05-05 16:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-05 11:04 Lloyd Zusman
2003-05-05 13:36 ` Zefram
2003-05-05 13:50 ` Lloyd Zusman
2003-05-05 16:57 ` Bart Schaefer [this message]
2003-05-05 18:27 ` Lloyd Zusman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1030505165710.ZM24097@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).