sh/rm bug -- rm doesn't remove a file when run from cmd

Kevin Layer layer@franz.com
Wed Jan 29 00:47:00 GMT 2003


An easier way of reproducing it:

    d:\acl62\src\cl\src>ls -l foo.out
    -rw-r--r--    1 layer    None            6 Jan 28 14:39 foo.out

    d:\acl62\src\cl\src>sh -c 'rm foo.out'

    d:\acl62\src\cl\src>ls -l foo.out
    -rw-r--r--    1 layer    None            6 Jan 28 14:39 foo.out

    d:\acl62\src\cl\src>rm foo.out

    d:\acl62\src\cl\src>ls -l foo.out
    ls: foo.out: No such file or directory

    d:\acl62\src\cl\src>which rm
    /usr/bin/rm

    d:\acl62\src\cl\src>

I uninstalled my virus scanner (Norton 2002), thinking it might be the
cause.  No change.

I tried another machine that has the same versions of all the cygwin
programs as my machine.  The bug does _not_ happen there.

Does anyone have any clue where I can look?  This bug is killing me.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list