diff options
Diffstat (limited to 'python/tidy/tests/shell_tidy.sh')
-rw-r--r-- | python/tidy/tests/shell_tidy.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/python/tidy/tests/shell_tidy.sh b/python/tidy/tests/shell_tidy.sh new file mode 100644 index 00000000000..e38358fc3b6 --- /dev/null +++ b/python/tidy/tests/shell_tidy.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# +# Tests tidy for shell scripts. + +set -o nounset + +# Talking about some `concept in backticks` # shouldn't trigger +echo "hello world" +some_var=`echo "command substitution"` +another_var="$some_var" +if [ -z "${some_var}" ]; then + echo "should have used [[" +fi +[ -z "${another_var}" ] |