Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hdjrudni
6 days ago
|
parent
|
context
|
favorite
| on:
In praise of –dry-run
Even in those basic examples, it probably would be useful. `cp` to a blank file? No problem. `cp` over an existing file? Yeah, I want to be warned.
`rm` a single file? Fine. `rm /`? Maybe block that one.
Izkata
5 days ago
[–]
That last one would error without doing anything anyway because it's not recursive.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
`rm` a single file? Fine. `rm /`? Maybe block that one.