the varaibles are used the second they are set and thats why they unset after 3 seconds please look at the codes more thoroughly before posting commment
I know, that's why I said:
Quote
Edit: my bad. It seems that you don't use %memo3 and also %memo5
Which unset after 1 second. But nowhere else in the code do you use %memo3 or %memo5.
I'm confused about this part. You set a variable and then unset it (btw you can just do set -u1 %memo3 $1-, but that's not the point...), and then you never use the variables that you set.
Edit: my bad. It seems that you don't use %memo3 and also %memo5