Skip to content

! char in ${!var} shows as invalid #43

Closed
@hirenvadalia

Description

@hirenvadalia

I am using Bash IDE in VSCode and below code shows as invalid code while it is valid code

TEST_VAR=1
TEST_VAR1=1
declare -a list_of_variables=("TEST_VAR" "TEST_VAR1")
for var in ${list_of_variables[@]}
do
	echo "${var}=${!var}"
done

When I hover over ! char then it show 'Failed to parse expression' in tooltip

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggrammar bugIssues related to the bash grammar

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions