This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: sh/rm bug -- rm doesn't remove a file when run from cmd
- From: Harald Kierer <Harald dot Kierer at astrum dot de>
- To: 'Kevin Layer' <layer at franz dot com>,"'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Wed, 29 Jan 2003 17:36:29 +0100
- Subject: 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/