Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[RFC] adding zmktemp command
- X-seq: zsh-workers 44186
- From: Clinton Bunch <cdb_zsh@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [RFC] adding zmktemp command
- Date: Wed, 27 Mar 2019 16:16:12 -0500
- Dkim-filter: OpenDKIM Filter v2.11.0 heimdall.zentaur.org x2RLHkUM006728
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zentaur.org; s=default; t=1553721466; bh=G2TDWyAzYbiaBGtnBmBlOu5arg6HoSmdV3QbSYm2/Js=; h=To:From:Subject:Date:From; b=yb0+BuzN126ocwcIr7S069jLeqaGOM1k0tRXjKPGheEfU3C4ma2WFEd7GNeyfSaR5 0+hU4OhNazKHP8CnUafC6KPkDjJc5G1cep4fvB559uAzMGDkYG5Ios279TPwSuD5wp BX2rggB5lD9LKjszrbBhZcDBO9lLc7qr4DOI0A2o=
- 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
I'm thinking of adding a zmktemp command either in a new module (e.g.
zsh/tempfile) or in the zsh/files module.
My rationale is that mktemp is really useful for creating temporary
files but is not available by default on all systems and on some on
which it is available its options and function can diverge wildly (HP-UX
is an especially egregious example). Building it into the shell would
give a consistent interface for zsh scripts to create temporary files.
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)
But it also seems like it would be a good fit into the zsh/files module
(mktemp and zf_mktemp instead of zmktemp)
Thoughts?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author