PS1 variable

I want to set my prompt to something more descriptive than a plain old $, so I set the PS1 variable as such:

PS1="[${USER}][${PWD}]"

Which changes the prompt correctly, but when I change directories, it does not update the prompt. So I tried this:

PS1="`pwd`>"

I get the same results when changing directories.

How do I get the PS1 variable to dynamically change?

PS1='$PWD ' will give you the present working directory with a space after it.

Ah, I see...I used double quotes. When I changed to single quotes like you suggested, it worked fine. Thanks.