From owner-freebsd-bugs Thu May 21 09:04:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA29917 for freebsd-bugs-outgoing; Thu, 21 May 1998 09:04:48 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA29904 for ; Thu, 21 May 1998 09:04:47 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id JAA16882; Thu, 21 May 1998 09:00:02 -0700 (PDT) Received: from beebite.ugh.net.au (andrew@dialin127.worldlink.com.au [210.8.184.76] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA28872 for ; Thu, 21 May 1998 08:57:46 -0700 (PDT) (envelope-from andrew@ugh.net.au) Received: from localhost (andrew@localhost) by beebite.ugh.net.au (8.8.8/8.8.8) with SMTP id BAA02318 for ; Fri, 22 May 1998 01:58:04 +1000 (EST) (envelope-from andrew@ugh.net.au) Message-Id: Date: Fri, 22 May 1998 01:58:04 +1000 (EST) From: andrew@ugh.net.au To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: conf/6711: I've seen that fortune before Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6711 >Category: conf >Synopsis: I've seen that fortune before >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 21 09:00:02 PDT 1998 >Last-Modified: >Originator: Andrew >Organization: UgH! >Release: FreeBSD 2.2.6-STABLE i386 >Environment: Running a csh based shell (tcsh) >Description: fortune (if installed) is run from .login by default. After a while you start to see the same old fortunes being presented even though there are many fortune files installed in /usr/share/games/fortune. I would suggest we make the line in .login 'fortune all' so a fortune is picked from any of the files. The only problem I could see from this was that some limericks seemed to have been misfiled and really belong in limericks-o. Not having time to sort through them all just yet I moved them all to limerick-o. Better to err with safety I felt. Quiting PPP paniced my machine >How-To-Repeat: Login in lots :-) >Fix: Patch to /usr/src/share/skel/dot.login: --- dot.login.orig Thu May 21 22:17:28 1998 +++ dot.login Thu May 21 22:17:38 1998 @@ -17,4 +17,4 @@ # A rightous umask umask 22 -[ -x /usr/games/fortune ] && /usr/games/fortune +[ -x /usr/games/fortune ] && /usr/games/fortune all Patch to /usr/src/games/fortune/datfiles/Makefile: --- Makefile.orig Thu May 21 22:04:33 1998 +++ Makefile Thu May 21 22:14:35 1998 @@ -8,8 +8,8 @@ # LINES AND COMMENT OUT THE FOURTH LINE. # THE THREE LINES -FILES+= fortunes2-o limerick -BLDS+= fortunes2-o.dat limerick.dat +FILES+= fortunes2-o limerick-o +BLDS+= fortunes2-o.dat limerick-o.dat TYPE= real # THE FOURTH LINE @@ -41,7 +41,7 @@ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} ${BLDS} \ ${DESTDIR}${SHAREDIR}/games/fortune -fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat: +fortunes.dat fortunes2.dat fortunes2-o.dat limerick-o.dat startrek.dat zippy.dat: ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET} fortunes-o.dat: fortunes-o Also required is: mv /usr/src/games/fortune/datfiles/limerick /usr/src/games/fortune/datfiles/limerick-o >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message