Date: Sun, 28 Feb 1999 11:32:40 +0100 (CET) From: Andrzej Bialecki <abial@nask.pl> To: "Daniel C. Sobral" <dcs@newsguy.com> Cc: "Jordan K. Hubbard" <jkh@zippy.cdrom.com>, "Jordan K. Hubbard" <jkh@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/kget Makefile kget.8 kget.c Message-ID: <Pine.BSF.4.02A.9902281131210.12310-100000@korin.warman.org.pl> In-Reply-To: <36D896C8.38DAC6DC@newsguy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 -------------------- ++-------++ ------------------------------------- <abial@nask.pl> ||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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02A.9902281131210.12310-100000>