From owner-freebsd-hackers@freebsd.org Wed Nov 22 16:36:05 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 E91B5DEF877 for ; Wed, 22 Nov 2017 16:36:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22f.google.com (mail-it0-x22f.google.com [IPv6:2607:f8b0:4001:c0b::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B1AA3806B2 for ; Wed, 22 Nov 2017 16:36:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22f.google.com with SMTP id n134so7037339itg.3 for ; Wed, 22 Nov 2017 08:36:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=jJUiJSCg9sh46zXnpeeLssaGjTH8gVHaxEipw/qxyoA=; b=b/ToG7IQ1xKc6kNXIACO2RBkzHBmqdSS7imybxadUouBGFUjbPzA4EhXZo7dcqXMxE 5rMt24APg7n6q1leoaYpf8k3y9XqBYCgCsUunDP8Yey5sbhODrdB02BN9DDAKj5kehvf EU5D2IawtKixK5z6jDhMSLrgQPB+XoCZ6psjPhmBRhFExfBUvePXra+sz1yrCxRsCvQ8 Iev5a24wAZO+m7F2tKouy5gKTT4KTSjwuXTtIRQTIOHpqMS3alLIpb9YuQeGFeHO4EFG 1ir3XLpBjnQrRkNR3jZJiDWhZxVI44kRMrOqcO5pybuS3kHkSBZn+ocIN0LnCnAh07wW tuZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=jJUiJSCg9sh46zXnpeeLssaGjTH8gVHaxEipw/qxyoA=; b=i1ecX3Q1PCHz4oH1C4i8+fTtBe/deLjpuBFqsO1y4NihxYJQUFjAaw9Z8yKKIYH1oe ZPlbYyxR+ydVYqBUJ0ExNL+tXdVT4TfBp0pJUK8n2FdlaReBIRFuG6Yy2UcCaUmZMbp2 FghEzqaaU676iuPjzoIthil+YEoVdBf/cMFHwFEAT7y14FXnriIUtL9KNbbEvefMlIei W76tAgVeDCO+rzIwOXAvzgxzVTqbDpxsmU6SnIACOdSscg+hD68l04q0e2hOtpNHooNM mhtnjvn2zT9V9L7a4dVt/TJrYWVRwtPoPwpw+/ZV62AH/4C3lIkSic1fn4iCRhFNPAd0 jEkw== X-Gm-Message-State: AJaThX6k4zRprUfeZzBCOAvZnPRhuiaQ922QmJIa10mRTYI3v3j5TPq/ PACGz0wzTFlmQacT6l061M1nriCNXEYci7fSvp+4rw== X-Google-Smtp-Source: AGs4zMY2Vrx30JauNFgoQYVs829zDCCr9dFmVIFKrM0qXYeqqd62ZOedosZDfMbAzmRQ3be4HKeowMu9CjPXLbLnhFY= X-Received: by 10.36.133.135 with SMTP id r129mr8105749itd.69.1511368564730; Wed, 22 Nov 2017 08:36:04 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.108.204 with HTTP; Wed, 22 Nov 2017 08:36:04 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:6561:a5e8:a74:eef3] In-Reply-To: <66D39828-ADBA-4973-BEB8-B2F6657E9996@FreeBSD.org> References: <66D39828-ADBA-4973-BEB8-B2F6657E9996@FreeBSD.org> From: Warner Losh Date: Wed, 22 Nov 2017 09:36:04 -0700 X-Google-Sender-Auth: PrsRsVc_RV4qjtXqnQDiAC-50Y8 Message-ID: Subject: Re: The future of fortune(6) To: Benno Rice Cc: "freebsd-arch@freebsd.org" , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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 16:36:06 -0000 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 hav= e a > 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/ > local/share/games/fortune. > > fortune is still used in the default .login/.profile to show entries from > the still existing freebsd-tips: > > $ grep fortune /usr/share/skel/* > /usr/share/skel/dot.login:if ( -x /usr/bin/fortune ) /usr/bin/fortune > freebsd-tips > /usr/share/skel/dot.profile:if [ -x /usr/bin/fortune ] ; then > /usr/bin/fortune freebsd-tips ; fi > $ fortune freebsd-tips > If you need a reminder to leave your terminal, type "leave +hhmm" where > "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 > should take: > > 1) Complete removal of fortune and freebsd-tips, remove its usage from th= e > default .login/.profile files. > > 2) Reworking fortune(6) to remove the offensive fortune flag and make > freebsd-tips the default, possibly by symlinking it as > /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