linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Man page pre & post operators error
@ 2019-09-20 14:19 Rick Stanley
  2019-09-20 17:00 ` Jakub Wilk
  2019-09-22 21:01 ` Michael Kerrisk (man-pages)
  0 siblings, 2 replies; 11+ messages in thread
From: Rick Stanley @ 2019-09-20 14:19 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man

Greetings!

In the man pages, both in Linux and online in multiple sites, the pre
and post operators are listed as equal precedence.  Two different web
sites list them on different levels:

http://man7.org/linux/man-pages/man7/precedence.7.html
	Level 1

https://linux.die.net/man/7/operator
	Level 2

Linux `man operator` list them on the second level, with right to left
associativity:

       Operator                            Associativity
       () [] -> .                          left to right
       ! ~ ++ -- + - (type) * & sizeof     right to left
       ...

Section "A.2.1 Expressions" of both the C99 & C11 C Draft Standards,
list them on different levels:

	postfix ++ & -- on level 1, with left to right associativity

	prefix ++ & -- on level 2, with right to left associativity

Please review this and all the operator precedence and associativity in
the current man page "man operator" against the official C99 & C11
Standards documents, plus the current working draft for the next
version of the Standard.

Please correct me if I am mistaken.

References:

Debian Linus Testing, Debian 5.2.9-2 (2019-08-21) x86_64 GNU/Linux

Thank you!

Cheers!

Rick Stanley


-- 
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-10-01 14:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-20 14:19 Man page pre & post operators error Rick Stanley
2019-09-20 17:00 ` Jakub Wilk
2019-09-22 21:01 ` Michael Kerrisk (man-pages)
2019-09-22 22:50   ` Rick Stanley
2019-09-23  7:43     ` Michael Kerrisk (man-pages)
2019-09-25 15:23     ` Rick Stanley
2019-09-25 19:42       ` Michael Kerrisk (man-pages)
2019-09-25 20:08         ` Michael Kerrisk (man-pages)
2019-09-25 22:53           ` Rick Stanley
2019-09-28 18:05         ` Manpage operator update Rick Stanley
2019-10-01 13:48         ` proposed patch to operator manpage Rick Stanley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).