Is it a bug that core ships gawk as the default awk?


#1

Is it intended that core ships gawk as the default awk, instead of the small and lightweight mawk as Ubuntu does? You can open a shell into any snap and check it.

$ awk --version
GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0)

I prefer to set it back to mawk:

  mawk:
    plugin: nil
    override-build: |
      snapcraftctl build
      mkdir -p $SNAPCRAFT_PART_INSTALL/usr/bin/
      ln -s /usr/bin/mawk $SNAPCRAFT_PART_INSTALL/usr/bin/awk
$ awk --version
awk: not an option: --version