#! /bin/sh # This script shows how changes to variables made by a script # disappear after execution of the script. echo "Before re-assignment by this script, environment variable \$HOME is $HOME" HOME=/root echo "After re-assignment by this script, environment variable \$HOME is $HOME" echo "After execution of this script, echo \$HOME"