From owner-freebsd-current Thu Jan 28 09:42:31 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA17337 for freebsd-current-outgoing; Thu, 28 Jan 1999 09:42:31 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA17292 for ; Thu, 28 Jan 1999 09:42:14 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.1/8.9.1) id MAA17874; Thu, 28 Jan 1999 12:41:10 -0500 (EST) (envelope-from wollman) Date: Thu, 28 Jan 1999 12:41:10 -0500 (EST) From: Garrett Wollman Message-Id: <199901281741.MAA17874@khavrinen.lcs.mit.edu> To: Robert Nordier Cc: freebsd-current@FreeBSD.ORG Subject: Re: "Argument by Authority" In-Reply-To: <199901280348.FAA29674@ceia.nordier.com> References: <19990128130131.J4819@freebie.lemis.com> <199901280348.FAA29674@ceia.nordier.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < said: > | COMPATIBILITY > | The rm utility differs from historical implementations in that > | the -f option only masks attempts to remove non-existent > | files instead of masking a large variety of errors. I went down to our reading room and examined 1003.2. It says quite clearly that `-f' has ONLY the following two effects: 1) Suppress warnings for non-existent files specified on the command line. 2) Suppress interaction when removing an unwritable file even when standard input is connected to a terminal. It specifically requires that diagnostics be generated for any errors resulting from unlink() or rmdir(). (The rationale dismisses the historic behavior by describing it as ``hardly doing a service to either shell programmers or interactive users''.) The synopsis given is: rm [-firR] file ... ...which indicates that at least one `file' argument is required. It also indicates that `-f' and `-i' are not mutually exclusive. Furthermore, 1003.2 prohibits our `-d' flag; `rm' is always required to call rmdir() when a directory is specifed on the command line. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message