[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: libtrash in fedora Core 5



Lamont R. Peterson <lamont gurulabs com> wrote:
> On Saturday 21 January 2006 11:14am, Jeff Spaleta wrote:
> > On 1/21/06, Ola Thoresen <redhat olen net> wrote:
> > > My point is that if we want this kind of feature, it should be
> > > trasparent to the user (like libtrash) so you don't have to rewrite a
> > > gazillion scripts and alter user behaviur.

And won't work for random programs who call unlink(2) on their own anyway,
etc.

> > I really really think its a bad idea to change the behavior of the rm
> > command to meet the expectations of desktop users, who drop to the
> > commandline.

Disagree strongly. It is a *terrible* idea, not merely bad.

> >               rm's default functionality of deleting files should not
> > change. libtrash is a hack, which should be applied by people who know
> > that they want to apply that hack and should not be something that
> > drops in and automatically reconfigures the functionality of rm.  How
> > many shell scripts exist which rely on standard rm functionality?
> 
> I agree; especially because of shell scripts.

> Here is my thought on how to introduce the capability sanely: Create a
> new command ("trash" or "toss" or something-else?) that one would use
> instead of rm.  That command would look at the configuration found in
> /etc/something.conf (you know, that matches the name of the command) or
> an environment variable (probably a much better choice for performance)
> and will: "mv" files to a designated directory on the partition/volume
> (like "/.thetrash/".

If you want Windows with all its brokeness, you know where to find it...
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]