bin/67041: "fortune -m" peeks in "fortune" file only
yar at comp.chem.msu.su
Sat May 22 06:50:48 PDT 2004
>Synopsis: "fortune -m" peeks in "fortune" file only
>Arrival-Date: Sat May 22 06:50:17 PDT 2004
>Originator: Yar Tikhiy
>Release: FreeBSD 5.2-CURRENT i386
Moscow State University
Fresh CURRENT installation
fortune(6) displays fortunes from the "fortunes" and "fortunes2"
files by default. This can be verified with "fortune -f".
However, searching for a pattern with -m applies to "fortunes" only.
$ /usr/games/fortune -m LESSER-KNOWN -f
That is fortune(6) promises to look into the two files.
Now let's actually search for the phrase.
$ /usr/games/fortune -m LESSER-KNOWN | fgrep "%% ("
The phrase is found in "fortunes" only. Now let's add
the "all" argument to fortune(6).
$ /usr/games/fortune -m LESSER-KNOWN all | fgrep "%% ("
I.e., the phrase is present "fortunes2", too, but fortune(6)
won't find it there by default.
Conclusion: "fortune -m" won't look into "fortunes2", although
it promises to.
More information about the freebsd-bugs