#!/bin/bash foo="The first!" export bar="The second!" ./export2.sh #!/bin/bash echo "$foo" echo "$bar"