Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider exporting TMPDIR by default #306

Closed
bchallenor opened this issue Apr 26, 2017 · 2 comments
Closed

Consider exporting TMPDIR by default #306

bchallenor opened this issue Apr 26, 2017 · 2 comments

Comments

@bchallenor
Copy link

Termux already exports PREFIX; could it export TMPDIR as well?

I'm looking at compiling a Go application that makes frequent use of ioutil.TempFile. I could patch all the usages, or I could patch the Go runtime itself, but as Go respects TMPDIR, defining it by default in Termux would be the easiest solution.

Note TMPDIR is a Unix standard and many programs will respect it.

@fornwall
Copy link
Member

Thanks - TMPDIR is exported starting with version 0.49 of Termux, which has just been released and should be available as an update shortly!

@malbarbo
Copy link

TMPDIR is set when a termux windows is opened in the phone, but it is not set when connecting to phone by ssh... @fornwall Is this expected?

sp4rkie added a commit to sp4rkie/debian-on-termux that referenced this issue Oct 24, 2017
workaround termux/termux-packages#1644
or expect 'patch' to fail when doin the install via ssh and sh (not bash) is used
@ghost ghost locked and limited conversation to collaborators Oct 17, 2021
AdamMickiewich pushed a commit to VolyaTeam/dzida-app that referenced this issue Aug 8, 2022
shrihankp pushed a commit to reisxd/termux-app that referenced this issue Oct 20, 2022
frikke pushed a commit to frikke/termux-app that referenced this issue Aug 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants