Bash shell expands all ${parameter} before evaluating a command. For multiple declarations and assignments within the same 'local' command, then new variables or new values that appear towards the left do not affect parameter expansion towards the right. -- John Reiser, jreiser-L8/tzxVKHrlWk0Htik3J/w@public.gmane.org