This is odd-- the os snap I use specifies mawk as the alternative, but yours has gawk.
$ snap list Name Version Developer ... ubuntu-core 16.04+20160419.20-55 canonical $ ls -l /etc/alternatives/awk lrwxrwxrwx 1 root root 13 Apr 20 04:58 /etc/alternatives/awk -> /usr/bin/mawk I can easily see that things work with the hello-world snap: $ sudo snap install hello-world ... $ hello-world.sh # run a confined shell bash-4.3$ gawk -W version # try gawk bash: gawk: command not found # expected, gawk is not on the system bash-4.3$ mawk -W version # try mawk mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan ... bash-4.3$ awk -W version # try awk mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan How did you generate the image? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1580018 Title: ubuntu-core image missing awk To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1580018/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
