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

Harald Kierer Harald.Kierer@astrum.de
Wed Jan 29 17:17:00 GMT 2003


> Found the problem: I had a file named `rm':
> 
> D:\acl62\src\cl\src>ls -l rm
> -rw-r--r--    1 layer    None            0 Jan 28 15:47 rm
> D:\acl62\src\cl\src>getfacl rm
> # file: rm
> # owner: layer
> # group: None
> user::rw-
> group::r--
> other:r--
> mask:rwx
> 
> D:\acl62\src\cl\src>
> 
> Now, it seems odd that `sh' (but not `bash' nor `sh' on Solaris) would
> try and execute this.

My guess: When you start bash your pwd gets changed. Check your last line in
/etc/profile. So your "faulty" 0-byte rm is not found.
sh doesnt change the pwd, so it uses the 0-byte rm.

Bye,
 Harry

--
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