$: TEST=this #-- your shell might need to 'export' explicitly $: echo $TEST this $: TEST=that eval 'echo $TEST' that $: echo $TEST this