#!/bin/bash #This is a script that tests the export command set -a #will export all new/changed vars." x=10 y=20 bash -? "commands;to;test;exit" echo "after the test" #End of script