TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ANSSI SAARI
from: CHRIS GREEN
date: 2021-01-22 10:25:00
subject: Re: Battery Powered Proje

Anssi Saari  wrote:
> druck  writes:
>
> >> Huh. Thanks for checking. Perhaps I am the "victim" of an automated
> >> switch from mawk to gawk after installing it as a dependency from
> >> other things I always install.
> >
> > I think that is the case, as I don't recall ever deliberately
> > installing gawk on those two machine.
>
> Could be. I have two Pis, one is running Raspbian 8 and
> /etc/alternatives/awk points to mawk. The other is running Raspbian 10
> and /etc/alternatives/awk points to gawk. I don't think I have installed
> gawk on the latter but I don't really remember for sure.
>
> By the way, since I haven't seen this mentioned, Debian provides a tool
> to manage those symlinks in /etc/alternatives, it's called
> update-alternatives. IMO it has an obscure syntax and is hard to use but
> I'd say it's still better than manually modifying the symlinks.

Yes, update-alternatives is an exercise in being as arcane as possible
I'm sure!  :-)

I think, in general, if you explicitly install gawk or mawk then they
will set themselves as the preferred (by update-alternatives) version
of awk.

--
Chris Green
ยท

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.