Path: csiph.com!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Greg Troxel Newsgroups: muc.lists.netbsd.tech.userlevel Subject: Re: rm -iR Date: Tue, 03 Feb 2026 17:27:22 -0500 Organization: Newsgate at muc.de e.V. Sender: tech-userlevel-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: References: <> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="16353"; mail-complaints-to="news-admin@muc.de" User-Agent: Gnus/5.13 (Gnus v5.13) Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=lexort.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lexort.com; s=mail; t=1770157642; bh=LvhDWk1/0mSu8RH7MPWWQTkMr2JQ6297lppELLdl4aM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=pixdygKEpCm4K1fnIuSISCMQ7WScf2B+nrIaLSqSEFRYGsO/gfOdps4EtYKDnmsOh m0BXs1XAFhU7xNo/T9YEQpNhoWFLR89JAUlDubNdFgwdwbafDo20S3Wm5aD3+CsNaW rAqHz6eaUr0Xx6tAU6B6xmN0KmWTmvXITxZfJz8c= In-Reply-To: (Jan Schaumann's message of "Tue, 3 Feb 2026 16:11:57 -0500") OpenPGP: id=098ED60E Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes Xref: csiph.com muc.lists.netbsd.tech.userlevel:11722 Jan Schaumann writes: > Greg Troxel wrote: > >> We should ensure that the code and the man page conform to POSIX > >> https://pubs.opengroup.org/onlinepubs/9799919799/utilities/rm.html > > I think that language can be interpreted to justify > either behavior. I sort of thought that at first, but there is a recursion rule, and if you read the spec like a computer, I think only the macos/linux behavior is ok. But it's really hard for me to be sure I'm reading it right. >> It's a good question how FreeBSD documents -i and processes it. > > FreeBSD behaves (and documents) like NetBSD. Perhaps -i arose in BSD. rm's -r option is earlier; I am pretty sure I remember it from Seventh Edition and probably Sixth. and to mouse about -r vs -R, posix says: -R Remove file hierarchies. See the DESCRIPTION. -r Equivalent to -R. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de