Skip to content

Commit

Permalink
testscript: clarify HOME and TMPDIR env var names
Browse files Browse the repository at this point in the history
They aren't always HOME and TMPDIR; on GOOS=windows they are different.
  • Loading branch information
mvdan committed Dec 14, 2023
1 parent 2c88e7f commit c68245e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testscript/doc.go
Expand Up @@ -57,8 +57,8 @@ Each script runs in a fresh temporary work directory tree, available to scripts
Scripts also have access to these other environment variables:
PATH=<actual PATH>
HOME=/no-home
TMPDIR=$WORK/.tmp
HOME=/no-home (USERPROFILE on windows, home on plan9)
TMPDIR=$WORK/.tmp (TMP on windows)
devnull=<value of os.DevNull>
/=<value of os.PathSeparator>
:=<value of os.PathListSeparator>
Expand Down

0 comments on commit c68245e

Please sign in to comment.