From spcoltri@omcl.org  Wed Nov  6 14:17:25 2002
Return-Path: <spcoltri@omcl.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C714A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  6 Nov 2002 14:17:25 -0800 (PST)
Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0CFDC43E42
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  6 Nov 2002 14:17:20 -0800 (PST)
	(envelope-from spcoltri@omcl.org)
Received: from h-66-167-131-183.phndaz91.covad.net ([66.167.131.183] helo=hrothgar.omcl.org)
	by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1)
	id 189YU6-0001Zr-00
	for FreeBSD-gnats-submit@freebsd.org; Wed, 06 Nov 2002 14:17:15 -0800
Received: from hrothgar.omcl.org (localhost [127.0.0.1])
	by hrothgar.omcl.org (8.12.6/8.12.6) with ESMTP id gA6MHi0K001419
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 6 Nov 2002 15:17:45 -0700 (MST)
	(envelope-from spcoltri@omcl.org)
Received: (from spcoltri@localhost)
	by hrothgar.omcl.org (8.12.6/8.12.6/Submit) id gA6MHi4q001418;
	Wed, 6 Nov 2002 15:17:44 -0700 (MST)
Message-Id: <200211062217.gA6MHi4q001418@hrothgar.omcl.org>
Date: Wed, 6 Nov 2002 15:17:44 -0700 (MST)
From: Steve Coltrin <spcoltri@omcl.org>
Reply-To: Steve Coltrin <spcoltri@omcl.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: style(9): '->' and '.' don't require spaces
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         45011
>Category:       docs
>Synopsis:       [patch] style(9): '->' and '.' don't require spaces
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    trhodes
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 06 14:20:02 PST 2002
>Closed-Date:    
>Last-Modified:  Fri Dec 23 22:19:32 GMT 2005
>Originator:     Steve Coltrin
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Orbital Mind Control Lasers
>Environment:
System: FreeBSD hrothgar.omcl.org 4.7-STABLE FreeBSD 4.7-STABLE #1: Thu Oct 10 20:14:28 MDT 2002 spcoltri@hrothgar.omcl.org:/usr/obj/usr/src/sys/HROTHGAR i386


	
>Description:
Per style(9):
  Unary operators do not require spaces, binary operators do.

This differs from the universal usage of '->' and '.'.
>How-To-Repeat:
	
>Fix:
--- src/share/man/man9/style.9.old	Wed Nov  6 15:10:20 2002
+++ src/share/man/man9/style.9	Wed Nov  6 15:12:20 2002
@@ -459,7 +459,11 @@
 		exit(error);
 .Ed
 .Pp
-Unary operators do not require spaces, binary operators do.
+Unary operators do not require spaces, binary operators other than
+.Ql \&->
+and
+.Ql \&.
+do.
 Do not use parentheses unless they are required for precedence or unless the
 statement is confusing without them.
 Remember that other people may
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Wed Nov 6 20:57:20 PST 2002 
Responsible-Changed-Why:  
I'll work on this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45011 
>Unformatted:
