Bash: make gmux func safe.