13

set variable with square brackets in c shell!

view full story
linux-howto

http://www.unix.com – 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: [code] 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 [\code] Thanks in advance! (HowTos)