Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [RFC] adding zmktemp command
- X-seq: zsh-workers 44193
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Clinton Bunch <cdb_zsh@xxxxxxxxxxx>
- Subject: Re: [RFC] adding zmktemp command
- Date: Thu, 28 Mar 2019 16:36:19 +0100
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1553787380; bh=qR3PLwKdbyAK/RI9eGZ5ja3EOxy4lVlWNb99biMdilE=; h=From:References:To:Subject:Date:From:Subject; b=K025UigUUmYovMkyEjQUUsW9QYUT0qCRfpXCT9gdEHatplGpKqXLxD63TAzyVWnXgC57ev2FKE3uuKSqcLbcbrH/Xy5A48W0ew7fjaAwC4RLnbMtVaIIQyFw9u8WeoLO85GoyEH7dHfuhl3UnsYLKr6aX/B8x99u37+gw2aVYkTcwrEos9CQoBL6uJABpcmRhW5Rr3L1UFMYH5H23HSayozZU0+qu/pz0EoGJ4FsXtB0PP7SJAas7ESPlh9jM0oOTzCnNbjL+/P6JLF3wPFbzX/q4xHC6EPEu4daBNUL8p/boW8355I116xuwxJGniknsIq9/0yshmDxOsVEQqhFww==
- In-reply-to: <c8ab4631-e66b-ffae-1db8-2a63e8fe2859@zentaur.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <c8ab4631-e66b-ffae-1db8-2a63e8fe2859@zentaur.org>
Clinton Bunch wrote:
> I'm thinking of adding a zmktemp command either in a new module (e.g.
> The advantage I can see to being it's own module, is it could be
> backported and separately packed for Long-Term Supported OS. (Mostly
> thinking of Enterprise Linux distributions)
I doubt you'd be able to persuade such distributions to include even a
completely new and separate module.
> But it also seems like it would be a good fit into the zsh/files module
> (mktemp and zf_mktemp instead of zmktemp)
zsh/files would mostly make sense for a mktemp builtin that closely
follows the interface of the normal mktemp Unix utility. If the focus is
to provide a consistent and convenient way to create temporary files,
then following mktemp is perhaps not the best choice. For security
reasons, an interface that returns a file handle is, I think, generally
preferred these days. Perhaps sysopen (in zsh/system) could accept a -t
option instead of a filename.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author