#! /bin/bash print() { local name=$1 echo The name is $name } name=Tom echo Hello $name print Tyson echo Hello $name
Scripting is sorcery
#! /bin/bash print() { local name=$1 echo The name is $name } name=Tom echo Hello $name print Tyson echo Hello $name