Skip to content

Commit c8567cf

Browse files
committed
testscript: clarify HOME and TMPDIR env var names
They aren't always HOME and TMPDIR; on GOOS=windows they are different.
1 parent 2af95f2 commit c8567cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testscript/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ Each script runs in a fresh temporary work directory tree, available to scripts
5757
Scripts also have access to these other environment variables:
5858
5959
PATH=<actual PATH>
60-
HOME=/no-home
61-
TMPDIR=$WORK/.tmp
60+
HOME=/no-home (USERPROFILE on windows, home on plan9)
61+
TMPDIR=$WORK/.tmp (TMP on windows)
6262
devnull=<value of os.DevNull>
6363
/=<value of os.PathSeparator>
6464
:=<value of os.PathListSeparator>

0 commit comments

Comments
 (0)