From owner-freebsd-stable Wed Jan 27 05:53:58 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA17281 for freebsd-stable-outgoing; Wed, 27 Jan 1999 05:53:58 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from pobox.com (mercury-2-178.mdm.mkt.execpc.com [169.207.86.243]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA17275 for ; Wed, 27 Jan 1999 05:53:56 -0800 (PST) (envelope-from hamilton@pobox.com) Received: from pobox.com (localhost [127.0.0.1]) by pobox.com (Postfix) with ESMTP id 7514745CB3; Wed, 27 Jan 1999 07:53:54 -0600 (CST) To: Brian Somers Cc: markf@prophecy.com.au, freebsd-stable@FreeBSD.ORG Subject: Re: rm with no arguments... In-reply-to: Your message of "Wed, 27 Jan 1999 08:33:13 GMT." <199901270833.IAA01052@keep.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 27 Jan 1999 07:53:54 -0600 From: Jon Hamilton Message-Id: <19990127135354.7514745CB3@pobox.com> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 giv } en. As a temporary work-around (just to shut it up), try specifying a "guara } 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. -- Jon Hamilton hamilton@pobox.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message