Commit 04d90b4
authored
rm: unexpected confirmation prompt (briandfoy#957)
* When attempting to remove a file that doesn't exist, rm shows a prompt about the file being read-only
* If I then confirm by typing "y", I see the unlink() error which explains the file wasn't found
* Bypass the prompt by adding an -e file check; the "-w FILE" is false if FILE doesn't exist1 parent 88def99 commit 04d90b4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
0 commit comments