oh, I forgot to mention: right after doing the rm, the return code is
success, even though it failed to actually remove the file.

d...@w2 ~
$ rm -f goo/foo

d...@w2 ~
$ echo $?
0

On 1/13/09, greenup greenup <gree...@gmail.com> wrote:
>...
>  d...@w2 ~
> $ mkdir goo
>
>  d...@w2 ~
>  $ touch goo/foo
>
>  d...@w2 ~
>  $ chmod 400 goo/foo
>
>  d...@w2 ~
>   $ rm -f goo/foo
>
>  d...@w2 ~
>  $ ls -la goo
>  total 0
>  drwxr-xr-x+  2 dz         mkgroup-l-d 0 Jan 13 08:10 .
>  drwxrwx---+ 23 Administrators SYSTEM      0 Jan 13 08:10 ..
>  -r--------   1 dz         mkgroup-l-d 0 Jan 13 08:10 foo
>
> ...

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

Reply via email to