"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: got: rm * removes current directory
To:
Omar Polo <op@omarpolo.com>
Cc:
Mikhail <mp39590@gmail.com>, gameoftrees@openbsd.org
Date:
Sun, 28 May 2023 19:26:48 +0200

Download raw body.

Thread
On Sun, May 28, 2023 at 05:11:07PM +0200, Omar Polo wrote:
> On 2023/05/28 12:59:39 +0200, Stefan Sperling <stsp@stsp.name> wrote:
> Don't know, I'm not sure we should be using $PWD in lib/ to change the
> behaviour, although removing $PWD is not nice.
> 
> Admittedly I haven't noticed the issue so far and won't consider it a
> bad thing anyway, as it did what it is supposed to do.

Another point of concern is that the current behaviour of got rm
contradicts the behaviour of /bin/rm.

/bin/rm does not allow the removal of "." or "..", and rm * will never
result in the removal of "."

Removal of "." via 'got rm *' can catch users by surprise for this reason.