FS#47388 - [man-pages] 4.03-1 awk man page incorrectly displays '~' operator
Attached to Project:
Arch Linux
Opened by Roma Kovalev (bsdbeard) - Tuesday, 15 December 2015, 14:44 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 28 July 2016, 06:33 GMT
Opened by Roma Kovalev (bsdbeard) - Tuesday, 15 December 2015, 14:44 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 28 July 2016, 06:33 GMT
|
Details
Description:
The awk (nawk) man page in core/man-pages displays " " where ~ should be displayed, this does not occur in the awk man page of other distributions and in the POSIX manual (http://pubs.opengroup.org/onlinepubs/9699919799/). Additionally, there are some spaces after ! which should not occur as they will cause errors. Example from archlinux man page: $2 " " /xyz/ && $4 ! " " /xyz/ the same example in the above link: $2 ˜ /xyz/ && $4 !˜ /xyz/ Steps to reproduce: man awk /\$.*" " This will find occurences like: $2 " " /xyz/ && $4 ! " " /xyz/ Which will produce an error when passed to awk, i.e. awk '$2 " " /xyz/ && $4 ! " " /xyz/' returns unexpected newline or end of string. After replacing " " with ~ and ! " " with !~ (no space after !, important), the program works as expected. |
This task depends upon
[andyrtr@workstation64 ~]$ pacman -Qo /usr/share/man/man1/awk.1p.gz /usr/share/man/man1/gawk.1.gz
/usr/share/man/man1/awk.1p.gz ist in man-pages 4.03-1 enthalten
/usr/share/man/man1/gawk.1.gz ist in gawk 4.1.3-1 enthalten
You should report back to https://www.kernel.org/doc/man-pages/contributing.html. Since we ship unchanged upstream man-pages from the man-pages project this should be an upstream bug.
https://bugzilla.kernel.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=documentation_man-pages%40kernel-bugs.osdl.org&emailassigned_to1=1&emailtype1=substring&list_id=810521&order=bug_id%20DESC&query_based_on=&query_format=advanced