What does file=/Users/Username/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe openssl dgst -sha1 < "$file" output? It looks like there's an extra space I didn't expect somewhere.