$ bash test.sh ++ type -a tovid + INSTALLED_TOVIDS='tovid is /usr/bin/tovid tovid is /usr/bin/tovid' + NUM_INSTALLED=0 + for tovid in '$INSTALLED_TOVIDS' + test -L tovid + let NUM_INSTALLED=NUM_INSTALLED+1 + for tovid in '$INSTALLED_TOVIDS' + test -L is + let NUM_INSTALLED=NUM_INSTALLED+1 + for tovid in '$INSTALLED_TOVIDS' + test -L /usr/bin/tovid + let NUM_INSTALLED=NUM_INSTALLED+1 + for tovid in '$INSTALLED_TOVIDS' + test -L tovid + let NUM_INSTALLED=NUM_INSTALLED+1 + for tovid in '$INSTALLED_TOVIDS' + test -L is + let NUM_INSTALLED=NUM_INSTALLED+1 + for tovid in '$INSTALLED_TOVIDS' + test -L /usr/bin/tovid + let NUM_INSTALLED=NUM_INSTALLED+1 + test 6 -ne 1 + echo 'Found 6 installations of tovid on your system!' Found 6 installations of tovid on your system! + echo 'I won'\''t run until there is only one of me :)' I won't run until there is only one of me :) + echo 'Installed versions:' Installed versions: + for version in '$INSTALLED_TOVIDS' + echo ' tovid' tovid + for version in '$INSTALLED_TOVIDS' + echo ' is' is + for version in '$INSTALLED_TOVIDS' + echo ' /usr/bin/tovid' /usr/bin/tovid + for version in '$INSTALLED_TOVIDS' + echo ' tovid' tovid + for version in '$INSTALLED_TOVIDS' + echo ' is' is + for version in '$INSTALLED_TOVIDS' + echo ' /usr/bin/tovid' /usr/bin/tovid + echo Exiting... Exiting... + exit 1