Opened 12 years ago

Closed 11 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:
Has a Patch: no Platform: All

Description

Type fortune in the terminal and get an error.

Attachments (3)

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

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by bbjimmy

Attachment: finddir.c added

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

Changed 12 years ago by bbjimmy

Attachment: fortune.c added

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

comment:1 in reply to:  description Changed 12 years ago by bbjimmy

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.

Changed 12 years ago by bbjimmy

Attachment: fortune.diff added

read the faq... upload a diff file

comment:2 Changed 11 years ago by modeenf

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 Changed 11 years ago by axeld

Status: newassigned

comment:4 Changed 11 years ago by axeld

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.