|
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 aconsitent behaviour than have different behaviours for different typesof 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
[Prev in Thread] | Current Thread | [Next in Thread] |