Christian Franke wrote:
A test script for all shells is attached. Run with admin rights.
Requires cygdrop from cygutils package.
Now it is attached :-)
#!/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
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple