This is the mail archive of the cygwin@cygwin.com 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]

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


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


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