2 ms·
`rm -i` with a yes to a read-only file does delete that file. But maybe I'm misunderstanding what you mean by it being a no-op. 'rm' (without '-i') does exactl
by em-bee 2y ago
`rm -i` with a yes to a read-only file does delete that file. But maybe I'm misunderstanding what you mean by it being a no-op.
'rm' (without '-i') does exactly the same. so for read-only files, '-i' changes nothing.
whereas '-f' does change the behavior of 'rm' on read-only files. it doesn't just override '-i'.
- jmholla 2y agoAh. I totally see what you meant now. Thank you for clarifying! I had thought you mean that `rm -i` would do nothing to read-only files. Not that the flag itself was a no-op.