[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
diff: perhaps warn if detect same file
From: |
Dan Jacobson |
Subject: |
diff: perhaps warn if detect same file |
Date: |
Mon, 18 Jun 2007 05:36:39 +0800 |
$ diff /var/cache/apt/archives/base-files_4.0.0_i386.deb \
/var/cache/apt/archives/
# No difference. Good. I can remove the unneeded extra copy
$ rm ...
The above disaster could have been avoided if diff, like emacs,
mentioned: "Warning: same file."
Return code probably still must be 0.
diff (GNU diffutils) 2.8.1 (Debian sid freshest)
- diff: perhaps warn if detect same file,
Dan Jacobson <=