mawk in Ubuntu and Debian is 18 years, see LP bug #1332114 Many bugs of Mawk are fixed in a new upstream versions 1.3.4-2010nnnn-2015nnnn, but the Debian maintainer does not want to update for an obscure reason. We need to push here: http://bugs.debian.org/554167
** Bug watch added: Debian Bug tracker #554167 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554167 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mawk in Ubuntu. https://bugs.launchpad.net/bugs/26603 Title: String indexes are inconsistent with other awks Status in mawk package in Ubuntu: Confirmed Bug description: The substr() function from within mawk does not function correctly. In particular, the substr(s,i,n) form returns n-1 characters, instead of n as required. To demonstrate: % echo "1234" | mawk '{print substr($0,0,3)}' 12 It should display "123"; this can be confirmed by using gawk instead, or trying awk on the *BSD platforms. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mawk/+bug/26603/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp