News for hackers. Stuff that matters.
Re:Scripts I wrote that I use all the time by YouAreWRONGtoo on Wednesday October 22, 2025 @06:14PM (#45675845)
Instead of trash, reimplementing rm (to only really delete after some time or depending on resource usage or to shred of you are paranoid if the goal is to really delete something) or using zfs makes much more sense.
Re:Scripts I wrote that I use all the time by orhmeh09 on Wednesday October 22, 2025 @07:17PM (#45676366)
I can't imagine a scenario where I would want to reimplement rm just for this.
Re:Scripts I wrote that I use all the time by YouAreWRONGtoo on Thursday October 23, 2025 @04:34AM (#45679579)
That just means you lack imagination, because ChatGPT can tell you in 10 seconds.
Re:Scripts I wrote that I use all the time by latexr on Thursday October 23, 2025 @04:58AM (#45679747)
https://news.ycombinator.com/newsguidelines.html

> Be kind. Don't be snarky. Converse curiously; don't cross-examine. Edit out swipes.

Instead of being rude to a fellow human making an inoffensive remark, you could’ve spent your words being kind and describing the scenario you claim exists. For all you know, maybe they did ask ChatGPT and were unconvinced by the answer.

As a side note, I don’t even understand how your swipe would make sense. If anything, needing ChatGPT is what demonstrates a lack of imagination (having the latter you don’t need the former).

Re:Scripts I wrote that I use all the time by YouAreWRONGtoo on Thursday October 23, 2025 @10:42AM (#45682390)
What makes you think I need ChatGPT, since I just wondered whether ChatGPT was as stupid, since obviously I do know why that would be useful?
Re:Scripts I wrote that I use all the time by thiht on Thursday October 23, 2025 @04:38AM (#45679616)
How is this better?
Re:Scripts I wrote that I use all the time by alanh on Wednesday October 29, 2025 @12:06AM (#45742503)
The idea of changing what 'rm' does sets off all of my "foot-gun" alarm bells