Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [RFC] adding zmktemp command
- X-seq: zsh-workers 44191
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: Re: [RFC] adding zmktemp command
- Date: Thu, 28 Mar 2019 15:17:07 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190328151710euoutp02ede7d0199a659f5d8431cf6444f7611e~QKFg25fSA1788017880euoutp02F
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1553786230; bh=1VtrbbfbcQNyv2S3ExFh2hoLh0JbC4jswGXaIh44olE=; h=Subject:From:To:Date:In-Reply-To:References:From; b=FlaJ9lSI2dQBP4zFNukioxLKRdAQl/UhGLZ/oEA99KQl7w+AeR5TPWf/78v20ZJDy dLuRMku/AkC8F4xm4T+UoOnN5EZKIxyWeEdxuBLrwDfYr+ViPJdC+sYCfCpEXas+5u 79BdgFECCNFnO6ZF2GSXA68nxmxjy1uMHE6fQ/BI=
- 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: <CGME20190327211847epcas2p395ce077891a4535f19e1e9605217df7c@epcas2p3.samsung.com> <c8ab4631-e66b-ffae-1db8-2a63e8fe2859@zentaur.org>
On Wed, 2019-03-27 at 16:16 -0500, Clinton Bunch wrote:
> But it also seems like it would be a good fit into the zsh/files module
> (mktemp and zf_mktemp instead of zmktemp)
>
> Thoughts?
It occurs to me that one reason for doing this might be that you could
add a zf_mkstemp function (no reason for compatibility with any external
command) that both creates and opens a file using mkstemp(), returning
the file descriptor in REPLY as usual. This is then secure.
That's something that's hard to do without a builtin.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author