On 14/03/17 13:56, Chris Angelico wrote:
On Wed, Mar 15, 2017 at 12:30 AM, Jon Ribbens <jon+use...@unequivocal.eu> wrote:
rm does not ask before deleting. However some Linux distributions
take it upon themselves to put "alias rm='rm -i'" in /etc/profile.

I have no such alias, but it still prompts.

[snip]

This is the GNU coreutils rm command. Obviously behaviour may be
different with non-GNU rm's.

Yes, I believe this is something extra that particular versions of 'rm' may do (over and above the POSIX/unlink() semantics discussed already).

Although one has permission at the OS/filesystem level to unlink the file, unless '-f' is specified they may still ask ('-i' behaviour) if that file is otherwise not modifiable by the user running the command, as a safety net.

E.

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to