Hi Guys,
I want to set a variable which happend to have square brackets in them. I tried multiple ways that is by escaping it with quotes (both single and double ) but it didn't help.
All I want is:
set x = slicearray.slice\[0\].post
My failed attempts were:
set x = "slicearray.slice\[0\].post"
set x = slicearray.slice\'['0\']'.post
set x = slicearray.slice\"["0\"]".po
Yes but it didn't work.
when I try single quotes and do echo $x it says:
echo : No match.
The problem is the square brackets because when I remove the square brackets it works just fine.