Summary
Use a parameter for the directory to be used by create-temporary-{file,directory}
Metadata
- Id: 17c03c38eb22da5eed6db765256a9b4e1d978117
- Trac id: 1831
- Type: enhancement
- Reporter: mario
- Owner:
- Cc:
- Status: new
- Component: core libraries
- Estimated difficulty: easy
- Resolution:
- Priority: minor
- Milestone: someday
- Version: 6.0.0
- Changetime: 2024-01-02 21:01:54 UTC
- Created: 2024-01-02 21:01:54 UTC
- Keywords: create-temporary-file, create-temporary-directory
Description
Currently, create-temporary-file and create-temporary-directory use the value of the TMPDIR, TMP and TEMP environment variables to determine the directory where to create files/directories, falling back to /tmp if none of them is set.
Relying on environment variables to configure create-temporary-file and create-temporary-directory is not ideal, as changing those variables affect child processes as well. A better configuration option would be a parameter.