From owner-freebsd-stable Wed Jan 27 07:49:36 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA00306 for freebsd-stable-outgoing; Wed, 27 Jan 1999 07:49:36 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA00298 for ; Wed, 27 Jan 1999 07:49:33 -0800 (PST) (envelope-from cy@cschuber.net.gov.bc.ca) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.9.1/8.8.8) id HAA23023; Wed, 27 Jan 1999 07:49:31 -0800 Received: from cschuber.net.gov.bc.ca(142.31.240.113), claiming to be "cwsys.cwsent.com" via SMTP by point.osg.gov.bc.ca, id smtpda23021; Wed Jan 27 07:49:22 1999 Received: (from uucp@localhost) by cwsys.cwsent.com (8.9.2/8.9.1) id HAA26208; Wed, 27 Jan 1999 07:49:19 -0800 (PST) Message-Id: <199901271549.HAA26208@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdJ26204; Wed Jan 27 07:48:59 1999 X-Mailer: exmh version 2.0.2 2/24/98 Reply-to: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-OS: FreeBSD 2.2.8-RELEASE X-Sender: cy To: Jon Hamilton cc: Brian Somers , markf@prophecy.com.au, freebsd-stable@FreeBSD.ORG Subject: Re: rm with no arguments... In-reply-to: Your message of "Wed, 27 Jan 1999 07:53:54 CST." <19990127135354.7514745CB3@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 27 Jan 1999 07:48:56 -0800 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <19990127135354.7514745CB3@pobox.com>, Jon Hamilton writes: > > In message <199901270833.IAA01052@keep.lan.Awfulhak.org>, Brian Somers wrote: > } > Jon Hamilton, Wednesday, January 27, 1999 5:26 PM said: > } > >On 3.0-STABLE from this past Saturday, rm -f with no arguments _does_ > } > >complain. > } > > } > I can confirm this on 2.2.8 stable also (as of Dec98). > } > Does anyone use a script where this hasn't produced output? > } > The man page says it stays quiet if the file(s) mentioned on the command > li > } ne don't exist. It doesn't say what happens if no command-line option is g > iv > } en. As a temporary work-around (just to shut it up), try specifying a "gua > ra > } nteed dummy" filename as a dummy argument: > } [.....] > } > } The man page doesn't specify ``file'' as optional, therefore it's a > } usage error and must be warned about. > > >From a purist point of view, I suppose you're correct. The down side > is that this breaks with many years of UNIX tradition. The code and > the man page should both be fixed IMO. To add to this, Solaris, DEC UNIX and RedHat do not warn when "rm -f" is entered. Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Open Systems Group Internet: Cy.Schubert@uumail.gov.bc.ca ITSD Cy.Schubert@gems8.gov.bc.ca Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message