This is the mail archive of the cygwin 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: rm seems to fail


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

dz@w2 ~
$ rm -f goo/foo

dz@w2 ~
$ echo $?
0

On 1/13/09, greenup greenup <greenup@gmail.com> wrote:
>...
>  dz@w2 ~
> $ mkdir goo
>
>  dz@w2 ~
>  $ touch goo/foo
>
>  dz@w2 ~
>  $ chmod 400 goo/foo
>
>  dz@w2 ~
>   $ rm -f goo/foo
>
>  dz@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/


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