strange behavior of 'rm'

Mikus Grinbergs mikus at bga.com
Fri Aug 13 10:39:35 EDT 2010


I experiment with manually adding/deleting Activities, then restarting
Sugar.  Sometimes I've seen obsolete activity-versions being listed in
some sort of snapshot recorded in shell.log.  I've empirically found
that I can lessen this by deleting ~/.sugar/default/favorite_activities
- and letting the Sugar restart rebuild that file.

A couple of times I've found that the 'rm' command I issue for this
purpose (e.g., from Terminal, while running as root) appears not to
work.  [The latest occurred on os353pyg - I don't remember which earlier
builds I saw it happen on.]  I'm mystified:

> 0 [~]# rm .sugar/default/favorite_activities
> rm: remove regular file `.sugar/default/favorite_activities'? y
> 0 [~]# rm .sugar/default/favorite_activities
> rm: remove regular file `.sugar/default/favorite_activities'? y
> 0 [~]# rm .sugar/default/favorite_activities
> rm: remove regular file `.sugar/default/favorite_activities'? y
> 0 [~]# ls -la .sugar/default/
> total 21
> drwxr-xr-x 8 olpc olpc    0 2010-08-14 12:24 .
> drwx------ 3 olpc olpc    0 2010-08-14 12:14 ..
> -rw-r--r-- 1 olpc olpc 9959 2010-08-14 05:41 buddy-icon.jpg
> drwxr-xr-x 3 olpc olpc    0 2010-08-14 05:42 cache
> drwxr-xr-x 2 olpc olpc    0 2010-08-14 05:39 data
> drwxr-xr-x 5 olpc olpc    0 2010-08-14 05:42 datastore
> -rw-r--r-- 1 olpc olpc 7792 2010-08-14 12:24 favorite_activities
> drwxr-xr-x 2 olpc olpc    0 2010-08-14 05:42 logs
> drwxr-xr-x 2 olpc olpc    0 2010-08-14 05:42 nm
> drwxr-xr-x 5 olpc olpc    0 2010-08-14 05:42 org.laptop.Terminal
> -rw------- 1 olpc olpc  668 2010-08-14 05:42 owner.key
> -rw-r--r-- 1 olpc olpc  590 2010-08-14 05:42 owner.key.pub
> -rw-r--r-- 1 olpc olpc  218 2010-08-14 05:42 terminalrc
> 0 [~]#

mikus










More information about the Devel mailing list