From: Robert Klemme Date: 2004-05-08T00:58:56+09:00 Subject: Re: any ideas for a shell based on Ruby? "Martinus" schrieb im Newsbeitrag news:7024f804.0405070450.3d461846@posting.google.com... > 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 :-) This is coming up every once in a while. There *is* in fact already a Ruby shell: irb. Together with fileutils you get pretty much what you want to write... Regards robert