I'm on Mac OSX and trying to test out some new prompt settings in terminal. Here's my setup
$ echo $PS1 $ \h:\W \u\$
This prompt works fine. But if I type
$ export $PS1="test"
I get the following errors
-bash: export: `\h:\W': not a valid identifier -bash: export: `\u\$': not a valid identifier -bash: export: `=test': not a valid identifier
Any ideas on why this is happening? I don't have a .bashrc file but I do have an /etc/bashrc file