aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/tests/shell_tidy.sh
blob: e38358fc3b676e94543d106f9c1328f43ac568c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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}" ]