On Friday 07 May 2004 08:53 am, Martinus wrote: > hello newsgroup, > > Recently I have played with the idea of writing a shell based on ruby. > I think this would be pretty cool, consider the following syntax: > > user@machine ~> ls.sort(:time).last.rm > > removes the oldest file in current directory: > 1. ls returns a special array of Filename objects > 2. The array is sorted by the attribute :date > 3. the last element is chosen from the array > 4. the file removes itself > > I am looking for other good ideas that justify creating such a ruby > based shell :-) Sorry I caught this thread so late. I actually did a little work on this. You can read about in the ROS project mailing list archives (on RubyForge). Essentially, my thought was to traverse the file system as if it were a Ruby Object --in fact it would be a proxy object for the filesystem. Then self would be the current traversal object (like current directory). Files and subdirectories would be accessor methods in that object, as would be commands like #ls and #cd, etc. inherited from the Filesystem::Directory class. -- T.