From owner-cvs-all Sun Feb 28 2:26: 2 1999 Delivered-To: cvs-all@freebsd.org Received: from korin.warman.org.pl (korin.nask.waw.pl [195.187.243.10]) by hub.freebsd.org (Postfix) with ESMTP id 30718151AB; Sun, 28 Feb 1999 02:25:58 -0800 (PST) (envelope-from abial@nask.pl) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.9.1/8.8.5) with SMTP id LAA13474; Sun, 28 Feb 1999 11:32:41 +0100 (CET) X-Authentication-Warning: korin.warman.org.pl: abial owned process doing -bs Date: Sun, 28 Feb 1999 11:32:40 +0100 (CET) From: Andrzej Bialecki X-Sender: abial@korin.warman.org.pl To: "Daniel C. Sobral" Cc: "Jordan K. Hubbard" , "Jordan K. Hubbard" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/kget Makefile kget.8 kget.c In-Reply-To: <36D896C8.38DAC6DC@newsguy.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Sun, 28 Feb 1999, Daniel C. Sobral wrote: > "Jordan K. Hubbard" wrote: > > > > > > Can't do that until include failures are silent. :) > > > > > > I didn't realize there was a problem. Would you mind describing what > > > seems to be the problem? :-) Or, more precisely, what ought to be > > > done? > > > > Well, if we're to do any sort of "speculative loading" as a way of > > implementing hooks, it would be nice to have an "include without > > yelping" routine that would just fail silently if the file wasn't > > found. It's either that or write a routine which opens the file, > > attempts to load it if found, then closes it (if open). It's kinda > > cumbersome for what should really be a built-in. > > Something like an "-f" flag to include? :-) > > I think existing mechanisms already enable you to do this. I'll > check and get back to you. Why not just silence the 'include', and do something like load <>0 if YELP then Andrzej Bialecki -------------------- ++-------++ ------------------------------------- ||PicoBSD|| FreeBSD in your pocket? Go and see: Research & Academic |+-------+| "Small & Embedded FreeBSD" Network in Poland | |TT~~~| | http://www.freebsd.org/~picobsd/ -------------------- ~-+==---+-+ ------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message