Skip to content

Introduce Abc_GetTmpDir() to set the tmp directory via $TMPDIR - #562

Open
dinoruic wants to merge 2 commits into
berkeley-abc:masterfrom
dinoruic:tmpdir
Open

Introduce Abc_GetTmpDir() to set the tmp directory via $TMPDIR#562
dinoruic wants to merge 2 commits into
berkeley-abc:masterfrom
dinoruic:tmpdir

Conversation

@dinoruic

@dinoruic dinoruic commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Some Abc commands use the hardcoded /tmp/ directory for temporary files. Over time this will pollute the /tmp/ directory. To avoid wasting disk space, we introduce the Abc_GetTmpDir() function which reads the temporary directory path from environment variables $TMPDIR on Linux and $TMP or $TEMP on windows. If they are not set, it falls back to /tmp/.

We update commands that hardcode /tmp/ to use the new Abc_GetTmpDir() function.

@dinoruic
dinoruic marked this pull request as ready for review September 5, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant