-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Greg Wooledge wrote: > On Sun, Jul 07, 2019 at 12:06:36PM +0200, Nicolas George wrote: >> DO NOT TRY TO SECOND-GUESS THE USER. > > While I absolutely agree with that, I would also add: > > DO SENSIBLE THINGS BY DEFAULT. > > That is, if the user doesn't tell you what to do, try to do the most > common, or the safest, thing. But if the user explictly tells you to > do something, you do it. > > Nuking a pre-existing directory's files, for example, is not a sensible > thing to do by default. BUT, if the user uses the --wipe-files option > with the --directory /home/me option, then by all means, nuke those files.
The one time I scripted rm, i tested it with a mv to /tmp first. saved my bacon. and i learned an important lesson about quoting substitutions. -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl0jy+EACgkQjhHd8xJ5 ooF7AQf+N0e66GKISjAmHZ0ay8jBGhM2sJKtOZlZsXibdLY7nbcCE8NpRPXffCxn kVDoHL8R804Sq9HYuyYy6UmncjmTHySqx8COzGeJJ7mkL/2Hhc2QoyD7dniXRlGh QK/8e+VjKyCLoVZ2n8iZMEsqyXdp8JVClogNRYRv7viqSVrfBi74DNFqLORbXfZ3 nA8aO6k5uHN0xw9beEMTZOQ6ZxILh6fXox/ti2WdGXu/bxWq6Ld8KYBTXiNAyPrt nu1gSHTWcOu9pbVdM5rrcqBg8TpnTWoJh1bZCp+cvB6Y87KYliniOTmEgbdI7FqV M5GxwkE/ZeDGw+97cnQh0SWIl3xTng== =/D6j -----END PGP SIGNATURE----- -- |_|O|_| |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281