In awk's POSIX documentation, both online at: http://man7.org/linux/man-pages/man1/awk.1p.html and in the awk(1p) man page: man-pages-posix-2013-a/man1p/awk.1p bundled in the archive man-pages-posix-2013-a.tar.xz downloaded from: https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/man-pages-posix/ some instances of '~' (tilde) have been rendered as ' " " ' (space - double quotes - space - double quotes - space). Referring to man-pages-posix-2013-a/man1p/awk.1p, these instances are fixed in the attached patch. It has been created with plain "git diff". Since I was not able to find any SCM repository for the POSIX man pages, the commits it refers to are obviously not meaningful (I created a local git repository to test "git diff" and "git apply"). The list of fixes has been determined comparing the above documents with "The Open Group Base Specifications Issue 7, IEEE Std 1003.1, 2013 Edition" at http://pubs.opengroup.org/onlinepubs/9699919799.2013edition/utilities/awk.html Thank you for your great job. Best regards. Francesco Sanesi
diff --git a/awk.1p b/awk.1p index 8a67a2f..08fd3dc 100644 --- a/awk.1p +++ b/awk.1p @@ -1241,7 +1241,7 @@ the value of the resulting expression shall be the equivalent of: .RS 4 .nf \fB -$0 " " /\fIere\fR/ +$0 ~ /\fIere\fB/ .fi \fR .P .RE @@ -2230,7 +2230,7 @@ preceding text syntax description. .P /* One-character tokens. */ %token '{' '}' '(' ')' '[' ']' ',' ';' NEWLINE -%token '+' '\(mi' '*' '%' '^' '!' '>' '<' '|' '?' ':' ' " " ' '$' '=' +%token '+' '\(mi' '*' '%' '^' '!' '>' '<' '|' '?' ':' ' '~' ' '$' '=' .P %start program %% @@ -2846,7 +2846,7 @@ names are the character: .RS 4 .nf \fB -<newline> { } ( ) [ ] , ; + \(mi * % ^ ! > < | ? : " " $ = +<newline> { } ( ) [ ] , ; + \(mi * % ^ ! > < | ? : ~ $ = .fi \fR .P .RE @@ -3012,7 +3012,7 @@ and the fourth field does not: .RS 4 .nf \fB -$2 " " /xyz/ && $4 ! " " /xyz/ +$2 ~ /xyz/ && $4 ! ~ /xyz/ .fi \fR .P .RE @@ -3025,7 +3025,7 @@ Write any line in which the second field contains a .RS 4 .nf \fB -$2 " " /\e\e/ +$2 ~ /\e\e/ .fi \fR .P .RE @@ -3042,7 +3042,7 @@ in processing the regular expression: .RS 4 .nf \fB -$2 " " "\e\e\e\e" +$2 ~ "\e\e\e\e" .fi \fR .P .RE