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

testscript: update docs on set variables #174

Merged
merged 1 commit into from Aug 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions testscript/doc.go
Expand Up @@ -56,11 +56,13 @@ As an example:
Each script runs in a fresh temporary work directory tree, available to scripts as $WORK.
Scripts also have access to these other environment variables:

HOME=/no-home
PATH=<actual PATH>
TMPDIR=$WORK/tmp
HOME=/no-home
TMPDIR=$WORK/.tmp
devnull=<value of os.DevNull>
goversion=<current Go version; for example, 1.12>
/=<value of os.PathSeparator>
:=<value of os.PathListSeparator>
$=$

The environment variable $exe (lowercase) is an empty string on most
systems, ".exe" on Windows.
Expand Down