Try:
pwd=`pwd`
or
pwd=$(pwd)
Notice no spaces after the equals sign.
Also as Mr. Weiss points out; you don't assign to $pwd, you assign to pwd.
$pwd
pwd
1.4m articles
1.4m replys
5 comments
56.9k users