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 May 9, 2024
1 parent 2af95f2 commit c8567cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testscript/doc.go
Original file line number Diff line number Diff line change
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 c8567cf

Please sign in to comment.