automate bash 4 shell replacement