Fetch the value from Here Document

view story

http://www.unix.com – I have code like Code: var="1" echo << EOF export `var="2"` EOF echo $var The value of var is printed here is 1 but it should be 2 Any error there? ---------- Post updated at 11:44 AM ---------- Previous update was at 10:33 AM ---------- Also tried Code: var="1" echo var << EOF echo "2" EOF echo $var (HowTos)