Should PS1 be defined before exported in .bash_profile?
In korn shell and bash, you can do it in one line. The original bourne shell required your second syntax, where you set it on one line and then exported it.