Well you can replace with this one fortune $(dpkg --listfiles fortunes-it | grep /usr/share/games/fortunes/ | egrep -v .dat\|.u8 | shuf -n1)
Il giorno mar 16 apr 2024 alle ore 17:36 Anthony Foglia <afog...@gmail.com> ha scritto: > > Sorry, I hadn't seen your initial response > > I was using the fortune program to show me random Italian quotes to work on > learning the language. Before I could just point fortune at the folder with > all the Italian fortunes. That's no longer easy without them in a separate > folder. > > So in my .bashrc I have > > if [[ -x /usr/games/fortune ]]; then > if [[ -d /usr/share/games/fortunes/it ]]; then > /usr/games/fortune /usr/share/games/fortunes/it > elif type dpkg > /dev/null; then > # As of v2, debian's fortunes-it package no longer puts the > # fortunes in a separate directory. > dpkg -L fortunes-it | grep "/usr/share/games/fortunes/" | grep -v \\. | xargs > -r /usr/games/fortune > fi > fi > > The call to dpkg is an obvious kludge. I'm surprised all the debian fortune > maintainers don't have a convention/best practice around this. > > I'm just end-user, so take my opinion/usage with a grain of salt. (To be > fair, I could just uninstall the other fortune-providing packages.) > > Sent with Shortwave > > On Mon Apr 15, 2024, 04:51 PM GMT, Debian Bug Tracking System wrote: > > This is an automatic notification regarding your Bug report > which was filed against the fortunes-it package: > > #1065032: fortunes-it: fortunes/it directory no longer used > > It has been closed by Salvo Tomaselli <tipos...@tiscali.it>. > > Their explanation is attached below along with your original report. > If this explanation is unsatisfactory and you have not received a > better one in a separate message then please contact Salvo Tomaselli > <tipos...@tiscali.it> by > replying to this email. > > > -- > 1065032: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065032 > Debian Bug Tracking System > Contact ow...@bugs.debian.org with problems -- Salvo Tomaselli "Io non mi sento obbligato a credere che lo stesso Dio che ci ha dotato di senso, ragione ed intelletto intendesse che noi ne facessimo a meno." -- Galileo Galilei http://ltworf.github.io