#!/bin/sh #f=/proc/registry/HKEY_LOCAL_MACHINE/SAM/SAM f=/proc/registry/HKEY_LOCAL_MACHINE/SECURITY /bin/test -r $f || echo "test: false negative" cygdrop -- /bin/test -r $f && echo "test: false positive" for shell in bash zsh mksh posh dash; do /bin/$shell -c "[ -r $f ]" || echo "$shell: false negative" cygdrop -- /bin/$shell -c "[ -r $f ]" && echo "$shell: false positive" done