bug-coreutils
[Top][All Lists]
Advanced

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

Re: shred command. Autodetect file type


From: Bauke Jan Douma
Subject: Re: shred command. Autodetect file type
Date: Tue, 05 Dec 2006 08:21:13 +0100
User-agent: Thunderbird 1.5.0.8 (X11/20061025)

John Darrington wrote on 05-12-06 01:41:
        Why not use the stat system call to find out what type of file
        we're dealing with, and then remove or not remove accordingly ?
That might cause a suprise in some cases. It is better to have a
     consitent behaviour than have different behaviours for different types
of files.
Why?  Other core GNU commands modify their behaviour based upon the
file type.  For example tar and ls treat their arguments differently
depending upon whether they are names of directories or names of
files.

Maybe that's justified by the fact that they're a tad less destructive?

bjd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]