Skip to content

Title: fortune: no place to put residual probability when using more than two files with percentages #143

@linux36524

Description

@linux36524

Body:
I’m trying to use fortune with multiple files and specific selection probabilities. For example, this command works fine with two files:
fortune 60% $HOME/.config/fortune/111 30% $HOME/.config/fortune/222
However, when I try to use three files with percentages:
fortune 60% $HOME/.config/fortune/111 30% $HOME/.config/fortune/222 10% $HOME/.config/fortune/333

I get the error:
fortune: no place to put residual probability (60%)
Each file is a valid fortune file.
The sum of percentages is exactly 100%.
It seems to work fine when only using two files.

Is there a limit on the number of files or a specific syntax required when using multiple files with percentage probabilities?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions