diff --git a/examples/common/env.sh b/examples/common/env.sh index 51d0fcb6487..df117439b65 100644 --- a/examples/common/env.sh +++ b/examples/common/env.sh @@ -80,5 +80,7 @@ alias mysql="command mysql --no-defaults -h 127.0.0.1 -P 15306" alias vtctldclient="command vtctldclient --server localhost:15999" # Make sure aliases are expanded in non-interactive shell -shopt -s expand_aliases +if [[ "${SHELL##*/}" == "bash" ]]; then + shopt -s expand_aliases +fi