From adrian@briton.nvl.virginia.edu  Tue Sep  2 06:31:36 1997
Received: from briton.nvl.virginia.edu (briton.nvl.Virginia.EDU [128.143.244.32])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA06071
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 2 Sep 1997 06:31:35 -0700 (PDT)
Received: (from adrian@localhost)
	by briton.nvl.virginia.edu (8.8.5/8.8.5) id JAA18616;
	Tue, 2 Sep 1997 09:31:30 -0400 (EDT)
Message-Id: <199709021331.JAA18616@briton.nvl.virginia.edu>
Date: Tue, 2 Sep 1997 09:31:30 -0400 (EDT)
From: adrian@virginia.edu
Reply-To: adrian@virginia.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: documentation error for sh(1) manpage
X-Send-Pr-Version: 3.2

>Number:         4449
>Category:       docs
>Synopsis:       The -c flag is not documented in the sh(1) manapge.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep  2 06:40:01 PDT 1997
>Closed-Date:    Sat Sep 13 10:40:20 PDT 1997
>Last-Modified:  Sat Sep 13 10:42:05 PDT 1997
>Originator:     Adrian Filipi-Martin
>Release:        FreeBSD 2.2.1-RELEASE i386
>Organization:
UVA
>Environment:

	Stock system.

>Description:

	There is no mention of the '-c' option for sh(1) in the manpage.
	At least searching for '-c' only find '-C' which is another argument
	all together.

	N.B. The problem still exists on 2.2.2-STABLE-XXXXXX.

>How-To-Repeat:

	man sh

>Fix:
	
	Apply the following patch to sh.1.  Note that I think there
	should be a non-breaking space between the 'arg' and the
	'...' as well as between '-c' and 'string' to prevent poor
	line wrapping.

--- sh.1.orig	Tue Sep  2 09:13:27 1997
+++ sh.1	Tue Sep  2 09:26:17 1997
@@ -40,7 +40,7 @@
 .SH NAME
 sh \- command interpreter (shell)
 .SH SYNOPSIS
-sh [-/+aCefnpuvxIimsVEb] [-/+o longname] [arg ...]
+sh [-/+aCefnpuvxIimsVEb] [-/+o longname] [-c string] [arg ...]
 .SH DESCRIPTION
 .LP
 Sh is the standard command interpreter for the system.
@@ -137,6 +137,11 @@
 -a    allexport
 Export all variables assigned to.
 (UNIMPLEMENTED for 4.4alpha)
+.TP
+-c    interpret command
+Pass the string argument to the shell to be interpreted as input.
+Keep in mind that this option only accepts a single string as its
+argument, hence multi-word strings must be quoted.
 .TP
 -C    noclobber
 Don't overwrite existing files with ``>''.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wosch 
State-Changed-When: Sat Sep 13 10:40:20 PDT 1997 
State-Changed-Why:  

Fixed in src/bin/sh/sh.1,v rev 1.15 
Thanks! 
>Unformatted:
