From owner-freebsd-hackers@freebsd.org Wed Nov 22 17:19:12 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6573DF0629; Wed, 22 Nov 2017 17:19:12 +0000 (UTC) (envelope-from jarmstrong@wi.rr.com) Received: from dnvrco-cmomta01.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9BE182077; Wed, 22 Nov 2017 17:19:11 +0000 (UTC) (envelope-from jarmstrong@wi.rr.com) Received: from PC91484 ([156.76.147.55]) by cmsmtp with ESMTPA id HYg1ety3ygoKNHYg3etsAo; Wed, 22 Nov 2017 17:19:11 +0000 From: "Joshua Armstrong" To: , References: <66D39828-ADBA-4973-BEB8-B2F6657E9996@FreeBSD.org> <003c01d363b1$c31ee760$495cb620$@wi.rr.com> In-Reply-To: <003c01d363b1$c31ee760$495cb620$@wi.rr.com> Subject: RE: The future of fortune(6) Date: Wed, 22 Nov 2017 11:19:08 -0600 Message-ID: <004d01d363b6$031b12e0$095138a0$@wi.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Content-Language: en-us Thread-Index: AQIiOTMoHYmzayQiy9HS1UDJyYWdbwGuI7qSAk9kafKiYwz9AA== x-ms-exchange-organization-originalclientipaddress: 10.1.40.70 x-ms-exchange-organization-originalserveripaddress: fe80::e045:5fd4:4ac4:be2f%18 X-CMAE-Envelope: MS4wfLIq5iMLRd75Kh/H4WM3ErR1TwxvseXgLLNmgo7dOFDRpEgmoilZjbLiNquCTmuBup10ug2I4nXKGxy4KHRV41xRlHEVv3r2EiDPogdSQgaF7i4Zi0cF NMIe9rMFqWDsewVz9sxPYP0/DNRqFKjS2DXYycm2/aWJ9uL/KXsX2dR3i0ce/AtNEdv/aFP5NR5A3c8+d8Jk3dg0dpnPlME8ju8= X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Nov 2017 17:19:12 -0000 -----Original Message----- From: owner-freebsd-hackers@freebsd.org = [mailto:owner-freebsd-hackers@freebsd.org] On Behalf Of Warner Losh Sent: Wednesday, November 22, 2017 10:36 AM To: Benno Rice Cc: freebsd-hackers@freebsd.org; freebsd-arch@freebsd.org Subject: Re: The future of fortune(6) On Wed, Nov 22, 2017 at 9:29 AM, Benno Rice wrote: > Hello, all! > > With the removal of the fortune datfiles I think it=E2=80=99s time to = have a=20 > discussion about fortune(6). > > fortune now defaults to using a fortune file that no longer exists: > > $ fortune > No fortunes found in /usr/share/games/fortune:/usr/=20 > local/share/games/fortune. > > fortune is still used in the default .login/.profile to show entries=20 > from the still existing freebsd-tips: > > $ grep fortune /usr/share/skel/* > /usr/share/skel/dot.login:if ( -x /usr/bin/fortune ) /usr/bin/fortune=20 > freebsd-tips /usr/share/skel/dot.profile:if [ -x /usr/bin/fortune ] ;=20 > then /usr/bin/fortune freebsd-tips ; fi $ fortune freebsd-tips If you=20 > need a reminder to leave your terminal, type "leave +hhmm" where=20 > "hhmm" represents in how many hours and minutes you need to leave. > -- Dru > > fortune also still has flags for showing offensive entries and the = like. > > I would like people=E2=80=99s opinion on which of the following two = paths we=20 > should take: > > 1) Complete removal of fortune and freebsd-tips, remove its usage from = > the default .login/.profile files. > > 2) Reworking fortune(6) to remove the offensive fortune flag and make=20 > freebsd-tips the default, possibly by symlinking it as=20 > /usr/share/games/fortune/fortunes. > > Personally I lean towards the first option. > >(3) Do #1 except replace fortune with a single line shell script: > >#!/bin/sh > >to not break everybody's login scripts. Possibly with an optional echo = "please remove fortune from .profile/.cshrc" > >I personally lean towards #2 though. I think the freebsd-tips are = useful. > >Warner I also think the tips on login are helpful. I would be in favor of = making freebsd-tips the default cookie file (with the possibility of = supplying other files as well) and removing the offensive option. Sorry for top-posting before. I had no idea that MS Outlook was so = terrible. :( -Joshua