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?
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/222However, when I try to use three files with percentages:
fortune 60% $HOME/.config/fortune/111 30% $HOME/.config/fortune/222 10% $HOME/.config/fortune/333I 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?