This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

test -f occasionally fails on sym links (keychain related)


Hi All...

While doing some testing with keychain and the snapshots while getting ready to release a keychain service package (still working on it)...I noticed the following

Sometimes doing a [ -f foo ]; will show a false true while the symlink is being created. You can see this by opening two bash shells and executing

while :; do echo $$> foo.lnk; rm foo.lnk; done

in the first one and

while :; do if [ -f foo ]; then echo here; else echo " there"; fi; done

in the second one.

Thanks,

...Karl



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]