zsh conditional statement help
- by Roy Rico
Feeling kinda dumb right now:
Why is my contional always true?
I've tried
# this should let me know what's not a directory or
# symbolic link.
whoa=`find ${MUSICDIR} ! -type l ! -type d | wc -l`
# I would expect if it's 0 (meaning nothing was found) that
# one of these statements would evaluate to false, but so far
# it's always evaluating to true
if [[ "${whoa}" != "0" ]]
if [[ ${whoa} -gt 0 ]]
What am I missing?