Opened 17 years ago

Closed 16 years ago

#1475 closed bug (fixed)

fortune doesn't work

Reported by: bbjimmy Owned by: axeld
Priority: normal Milestone: R1
Component: Applications/Command Line Tools Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Type fortune in the terminal and get an error.

Attachments (3)

finddir.c (5.5 KB ) - added by bbjimmy 17 years ago.
rename Fortunes fo default ( beos compatable) aand fortune works again
fortune.c (1.3 KB ) - added by bbjimmy 17 years ago.
oops ... mised the file.should have been fortune.c
fortune.diff (954 bytes ) - added by bbjimmy 17 years ago.
read the faq... upload a diff file

Download all attachments as: .zip

Change History (7)

by bbjimmy, 17 years ago

Attachment: finddir.c added

rename Fortunes fo default ( beos compatable) aand fortune works again

by bbjimmy, 17 years ago

Attachment: fortune.c added

oops ... mised the file.should have been fortune.c

in reply to:  description comment:1 by bbjimmy, 17 years ago

Replying to bbjimmy:

Type fortune in the terminal and get an error.

The fortune.c file I uploaded is a fix( sort of anyway ). fortune will now look for "\n%\n" instead of "#@#" as a delimiter. it also opens a file named default in /boot/beos/etc/fortunes/. this means that one of the included fortune files must be renamed default. It still does not allow a command line file selection. One of these days I might learn how to program in c or c++. until then i'll stay with basic and hac some c files by guess, trial and error.

by bbjimmy, 17 years ago

Attachment: fortune.diff added

read the faq... upload a diff file

comment:2 by modeenf, 16 years ago

Have tested this patch and it works if you rename one om the files to default..

So applaying this patch and renaming one of them (or make a link) and then I think we can close this one for now :)

comment:3 by axeld, 16 years ago

Status: newassigned

comment:4 by axeld, 16 years ago

Resolution: fixed
Status: assignedclosed

I didn't actually use your patch, but thanks anyway! :-) Fixed in hrev23788.

Note: See TracTickets for help on using tickets.