Consider:
Now vstr _test yields A, B, A, B, …Code:set _test "vstr _test1" set _test1 "echo A; set _test vstr _test2" set _test2 "echo B; set _test vstr _test1"
But:
prints "Usage: seta <variable> <value>".Code:set _test "vstr _test1" set _test1 "echo A; seta _test vstr _test2" set _test2 "echo B; seta _test vstr _test1"
Up until now I thought seta is the same as set except it also sets the archive flag. How to fix/work around this bug? I want to make a switch that retains state across matches.


Reply With Quote
