]> Cypherpunks repositories - gostls13.git/commit
os: keep the $ if a variable is not detected
authorAgniva De Sarker <agnivade@yahoo.co.in>
Wed, 28 Mar 2018 08:15:26 +0000 (13:45 +0530)
committerIan Lance Taylor <iant@golang.org>
Wed, 28 Mar 2018 18:25:41 +0000 (18:25 +0000)
commit7bf631e1fc55839a6bff404a91597326e1addc10
tree022bae310690460a772adfc5dec6acbe98fbfca4
parent8623503fe54642a21854c551129d550139f3bbac
os: keep the $ if a variable is not detected

If the character after $ cannot be detected as a valid
variable declaration, do not gobble the $.

Fixes #24345

Change-Id: Iec47be1f2e4f8147b8ceb64c30778eae8045b58f
Reviewed-on: https://go-review.googlesource.com/103055
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/env.go
src/os/env_test.go