aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/test_script_cmdcd.txt
blob: 6e6f67e13d089326dea85f0f9080bb1ead6cfd82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Tests that after a cd command, where usually the UNIX path separator is used,
# a match against $PWD does not fail on Windows.

cd $WORK/a/b/c/pkg

go list -find -f {{.Root}}
stdout $PWD

-- $WORK/a/b/c/pkg/go.mod --
module pkg

-- $WORK/a/b/c/pkg/pkg.go --
package pkg