Thanks! I think it's the editor-emacs that cause the problem, because when I use the command 'echo >>' to change the contents of name1, the two will change. But when I use 'emacs' to change the contents of name1, name2 doesn't change.