Hi, On Thu, Sep 11, 2008 at 09:43:19AM +0200, Arne Babenhauserheide wrote: > Am Dienstag 09 September 2008 09:48:56 schrieb > [EMAIL PROTECTED]:
> One very simple idea: An adventure game where your interface for > decision making is in fact your file system. [...] This is a funny idea indeed :-) > > So, the next step is a mechanism for overloading UNIX commands?... > > ;-) > > *gg* > > Would be quite fun :) > > And is damn well possible (danger: brainstorm approaching ;-) ): > > Put a translator on /bin which points to a custom cp which first > checks if one of the targets is covered by a version tracking > translator, and if it is, it does a version tracking copy. If it > isn't, it passes the parameters to the regular cp, circumventing the > (one) translator. > > Or a translator on /bin which checks, if one of the parameters of a > command involves files which are under another translator which > provides custom unix commands. Hm... Maybe it would be possible to create a translator that intercepts file_exec(), and supplies different files dependant on the arguments... But -- aside from being potentially confusing to some tools, and not very transparent -- it looks like overkill really. Much easier just to provide plain old wrapper scripts for the commands, wouldn't it?... :-) -antrik-