From nobody Fri Jun 11 00:31:13 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7A35D5D19AE for ; Fri, 11 Jun 2021 00:31:22 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G1MGL26Sfz3C7t; Fri, 11 Jun 2021 00:31:21 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.16.1/8.16.1) with ESMTPS id 15B0VDNR009033 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 10 Jun 2021 17:31:13 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.16.1/8.16.1/Submit) id 15B0VDAl009032; Thu, 10 Jun 2021 17:31:13 -0700 (PDT) (envelope-from sgk) Date: Thu, 10 Jun 2021 17:31:13 -0700 From: Steve Kargl To: Kevin Oberman Cc: Michael Gmelin , Ian Lepore , "Rodney W. Grimes" , FreeBSD Current Subject: Re: Files in /etc containing empty VCSId header Message-ID: <20210611003113.GA9021@troutmask.apl.washington.edu> References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Rspamd-Queue-Id: 4G1MGL26Sfz3C7t X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, Jun 10, 2021 at 03:26:58PM -0700, Kevin Oberman wrote: > On Wed, Jun 9, 2021 at 2:02 AM Michael Gmelin wrote: > > > > > On 9. Jun 2021, at 01:15, Ian Lepore wrote: > > > > > > On Tue, 2021-06-08 at 15:11 -0700, Rodney W. Grimes wrote: > > >>> On Tue, 8 Jun 2021 09:41:34 +0000 > > >>> Mark Linimon wrote: > > >>> > > >>>> On Mon, Jun 07, 2021 at 01:58:01PM -0600, Ian Lepore wrote: > > >>>>> Sometimes it's a real interesting exercise to figure out where > > >>>>> a > > >>>>> file on your runtime system comes from in the source world. > > >> > > >> There is a command for that which does or use to do a pretty > > >> decent job of it called whereis(1). > > >> > > > > > > revolution > whereis ntp.conf > > > ntp.conf: > > > revolution > whereis netif > > > netif: > > > > That line might make it to a shirt one day: > > > > > revolution > whereis services > > > > ;) > > Michael > > > Just to clarify for those not willing or able to RTFM, it only works for > executables, not conf files or libraries. It reports the location of the > executable, the man page and the port location, if it is a port. For those > who did RTFM, it is wrong. It claims that it reports on the location of the > source, but that is not the case as far as I know. I have never seen it > return anything from /usr/src. > > whereis cc > cc: /usr/bin/cc /usr/share/man/man1/cc.1.gz > > whereis postfix > postfix: /usr/local/sbin/postfix /usr/local/man/man1/postfix.1.gz > /usr/ports/mail/postfix I should probably just lurk, but I believe the command that some are looking for is ident(1). This command is, of course, broken by the lost of $FreeBSD$ expansion. -- Steve