3 ms·
Which linux are you referring to? I'm almost certain than Ubuntu 16.04 and 18.04 both ship with mawk as the default. Edit: just checked and my vps than runs 20
by version_five 5y ago
Which linux are you referring to? I'm almost certain than Ubuntu 16.04 and 18.04 both ship with mawk as the default.
Edit: just checked and my vps than runs 20.10 uses gawk
Edit 2: 18.04 also comes with gawk, at least the install I have. I know I have worked with mawk on a linux machine- could it have been Ubuntu 16.04?
- tyingq 5y agoAh...yeah, I was probably over generalizing when I said that, though it's probably fair to say that gawk is the default awk for many popular Linux distros.
- shakna 5y agoDebian & Ubuntu have moved back and forth between using mawk or gawk several times. Debian Jessie (circa 2016) used gawk. Debian Stretch (circa 2017) used mawk. Today, Debian uses gawk.
- JNRowe 5y agoHave you flipped the final one? Both my Buster and Bullseye installation only have mawk. Trying to dig in deeper makes my head explode though. mawk is marked required yet with update-alternatives priority of 5, and gawk is marked optional but with a priority 10. I guess the intention is that mawk is good enough for base installs, but you probably want gawk.
- tyingq 5y agoIt's definitely hard to track down. Mawk is often way faster than gawk, but gawk has more features (sockets even...crazy) and maybe fewer arbitrary limits.
- spinax 5y agoIIRC (no Ubuntu VM handy right now) mawk is the default with a minimal LTS install, using alternatives to point awk at it. When you apt install gawk it has a higher priority in alternatives and flips the awk symlinks over to gawk automagically.
- version_five 5y ago> gawk it has a higher priority in alternatives and flips the awk symlinks over to gawk automagically That must be what happened. I just checked my other machine that had a pretty new install of 20.04 on it, and it does have mawk. I'm happy to see I'm not crazy.